private Token scanFlowScalar(char style){
  boolean _double;
  if (style == '"') {
    _double=true;
  }
 else {
    _double=false;
  }
  StringBuilder chunks=new StringBuilder();
  Mark startMark=reader.getMark();
  char quote=reader.peek();
  reader.forward();
  chunks.append(scanFlowScalarNonSpaces(_double,startMark));
  while (reader.peek() != quote) {
    chunks.append(scanFlowScalarSpaces(startMark));
    chunks.append(scanFlowScalarNonSpaces(_double,startMark));
  }
  reader.forward();
  Mark endMark=reader.getMark();
  return new ScalarToken(chunks.toString(),false,startMark,endMark,style);
}

private Token scanFlowScalar ( char style ) { boolean _double ; if ( style == '"' ) { _double = true ; } else { _double = false ; } StringBuilder chunks = new StringBuilder ( ) ; Mark startMark = reader . getMark ( ) ; char quote = reader . peek ( ) ; reader . forward ( ) ; chunks . append ( scanFlowScalarNonSpaces ( _double , startMark ) ) ; while ( reader . peek ( ) != quote ) { chunks . append ( scanFlowScalarSpaces ( startMark ) ) ; chunks . append ( scanFlowScalarNonSpaces ( _double , startMark ) ) ; } reader . forward ( ) ; Mark endMark = reader . getMark ( ) ; return new ScalarToken ( chunks . toString ( ) , false , startMark , endMark , style ) ; }
scan a flow - style scalar . flow scalars are presented in one of two forms ; first , a flow scalar may be a double - quoted string ; second , a flow scalar may be a single - quoted string .
