protected void writeTerminal ( Encoder encoder ) throws IOException { if ( verbose != null ) { verbose . println ( String . format ( "Writing forward to end from %s to %s" , encoder . fromNode . getDebugString ( ) , encoder . node . getDebugString ( ) ) ) ; } encoder . out . writeVarShort ( ( short ) ( encoder . node . getDepth ( ) - encoder . fromNode . getDepth ( ) ) , 3 ) ; encoder . out . write ( encoder . fromNode . bitsTo ( encoder . node ) ) ; encoder . out . writeVarShort ( ( short ) 0 , 3 ) ; }
Write terminal .