@Override public void write(byte[] b,int off,int len) throws IOException {
  if (stack.size() == 0 || standaloneMarkers.contains(stack.peek().marker)) {
    writeStuffed(b,off,len);
  }
 else {
    writeNonstuffed(b,off,len);
  }
}

@ Override public void write ( byte [ ] b , int off , int len ) throws IOException { if ( stack . size ( ) == 0 || standaloneMarkers . contains ( stack . peek ( ) . marker ) ) { writeStuffed ( b , off , len ) ; } else { writeNonstuffed ( b , off , len ) ; } }
writes stuffed or non - stuffed bytes to the underlying output stream . bytes are stuffed , if the stream is not currently in a segment .
