public void reset() throws IOException {
  drain();
  output.writeByte(TC_RESET);
  resetState();
}

public void reset ( ) throws IOException { drain ( ) ; output . writeByte ( TC_RESET ) ; resetState ( ) ; }
resets the state of this stream . a marker is written to the stream , so that the corresponding input stream will also perform a reset at the same point . objects previously written are no longer remembered , so they will be written again ( instead of a cyclical reference ) if found in the object graph .
