public long getLength() throws IOException {
    long length = -1;
    if (generator != null) {
      length = textOutputStream.getByteCount();
    } else if (seqWriter != null) {
      length = seqWriter.getLength();
    }
    return length;
  }
public long getLength() throws IOException {
    long length = -1;
    if (generator != null) {
      length = textOutputStream.getByteCount();
    } else if (seqWriter != null) {
      length = seqWriter.getLength();
    }
    return length;
  }
public long getLength ( ) throws IOException { long length = - 1 ; if ( generator != null ) { length = textOutputStream . getByteCount ( ) ; } else if ( seqWriter != null ) { length = seqWriter . getLength ( ) ; } return length ; }
buffer size.
buffer size .