dap4/d4servlet/src/main/java/dap4/servlet/SerialWriter.java
public void
    writeBytes(byte[] bytes, int len)
            throws IOException
    {
        outputBytes(bytes, 0, len);
        if(this.checksummode.enabled(ChecksumMode.DAP)) {
            this.checksum.update(bytes, 0, len);
            if(DUMPCSUM) {
                System.err.print("SSS ");
                for(int i = 0; i < len; i++) {
                    System.err.printf("%02x", bytes[i]);
                }
                System.err.println();
            }
        }
    }
public void
    writeBytes(byte[] bytes, int len)
            throws IOException
    {
        outputBytes(bytes, 0, len);
        if(this.checksummode.enabled(ChecksumMode.DAP)) {
            this.checksum.update(bytes, 0, len);
            if(DUMPCSUM) {
                System.err.print("SSS ");
                for(int i = 0; i < len; i++) {
                    System.err.printf("%02x", bytes[i]);
                }
                System.err.println();
            }
        }
    }
public void writeBytes ( byte [ ] bytes , int len ) throws IOException { outputBytes ( bytes , 0 , len ) ; if ( this . checksummode . enabled ( ChecksumMode . DAP ) ) { this . checksum . update ( bytes , 0 , len ) ; if ( DUMPCSUM ) { System . err . print ( "SSS " ) ; for ( int i = 0 ; i < len ; i ++ ) { System . err . printf ( "%02x" , bytes [ i ] ) ; } System . err . println ( ) ; } } }
Write out a set of bytes

@param bytes
@param len
@throws IOException
Write out a set of bytes