class ByteArray {

    public void writeTo(OutputStream out) throws IOException {
        out.write(bytes, offset, length);
    }

    public  ByteArray(byte[] bytes);
    public  ByteArray(byte[] bytes, int offset, int length);

}