public static void setBufferType ( String bufferType ) { int bufferTypeHash = bufferType . hashCode ( ) ; switch ( bufferTypeHash ) { case 3198444 : //heap //Get a heap buffer from buffer pool FLVReader . bufferType = BufferType . HEAP ; break ; case - 1331586071 : //direct //Get a direct buffer from buffer pool FLVReader . bufferType = BufferType . DIRECT ; break ; case 3005871 : //auto //Let MINA choose default : FLVReader . bufferType = BufferType . AUTO ; } }
Setter for buffer type .