private static State nextQuoted ( final InputStream stream , final State state , final ByteArrayOutputStream line , final int next ) throws IOException { final State result ; switch ( next ) { case ' ' : result = state ; line . write ( stream . read ( ) ) ; break ; case ' ' : result = State . NORMAL ; break ; default : result = state ; line . write ( next ) ; break ; } return result ; }
Maintain next symbol for current state = State . QUOTED_STRING .