@Override protected void append(byte[] ba) { buffer.appendBytes(ba); }
/** Append all bytes from given byte array. */ public void appendBytes(byte[] bs) { appendBytes(bs, 0, bs.length); }
/** Append all bytes from given byte array. */ public void appendBytes(byte[] bs) { appendBytes(bs, 0, bs.length); }
/** Append a name. */ public void appendName(Name name) { appendBytes(name.table.names, name.index, name.len); }
/** Append all bytes from given byte array. */ public void appendBytes(byte[] bs) { appendBytes(bs, 0, bs.length); }
/** Append a name. */ public void appendName(Name name) { appendBytes(name.table.names, name.index, name.len); }
/** Append all bytes from given byte array. */ public void appendBytes(byte[] bs) { appendBytes(bs, 0, bs.length); }
/** Append a float as a four byte number. */ public void appendFloat(float x) { ByteArrayOutputStream buffer = new ByteArrayOutputStream(4); DataOutputStream bufout = new DataOutputStream(buffer); try { bufout.writeFloat(x); appendBytes(buffer.toByteArray(), 0, 4); } catch (IOException e) { throw new AssertionError("write"); } }
/** Append a double as a eight byte number. */ public void appendDouble(double x) { ByteArrayOutputStream buffer = new ByteArrayOutputStream(8); DataOutputStream bufout = new DataOutputStream(buffer); try { bufout.writeDouble(x); appendBytes(buffer.toByteArray(), 0, 8); } catch (IOException e) { throw new AssertionError("write"); } }
/** Append a long as an eight byte number. */ public void appendLong(long x) { ByteArrayOutputStream buffer = new ByteArrayOutputStream(8); DataOutputStream bufout = new DataOutputStream(buffer); try { bufout.writeLong(x); appendBytes(buffer.toByteArray(), 0, 8); } catch (IOException e) { throw new AssertionError("write"); } }
/** Append a long as an eight byte number. */ public void appendLong(long x) { ByteArrayOutputStream buffer = new ByteArrayOutputStream(8); DataOutputStream bufout = new DataOutputStream(buffer); try { bufout.writeLong(x); appendBytes(buffer.toByteArray(), 0, 8); } catch (IOException e) { throw new AssertionError("write"); } }
/** Append a float as a four byte number. */ public void appendFloat(float x) { ByteArrayOutputStream buffer = new ByteArrayOutputStream(4); DataOutputStream bufout = new DataOutputStream(buffer); try { bufout.writeFloat(x); appendBytes(buffer.toByteArray(), 0, 4); } catch (IOException e) { throw new AssertionError("write"); } }
/** Append a double as a eight byte number. */ public void appendDouble(double x) { ByteArrayOutputStream buffer = new ByteArrayOutputStream(8); DataOutputStream bufout = new DataOutputStream(buffer); try { bufout.writeDouble(x); appendBytes(buffer.toByteArray(), 0, 8); } catch (IOException e) { throw new AssertionError("write"); } }
/** Append a long as an eight byte number. */ public void appendLong(long x) { ByteArrayOutputStream buffer = new ByteArrayOutputStream(8); DataOutputStream bufout = new DataOutputStream(buffer); try { bufout.writeLong(x); appendBytes(buffer.toByteArray(), 0, 8); } catch (IOException e) { throw new AssertionError("write"); } }
/** Append a double as a eight byte number. */ public void appendDouble(double x) { ByteArrayOutputStream buffer = new ByteArrayOutputStream(8); DataOutputStream bufout = new DataOutputStream(buffer); try { bufout.writeDouble(x); appendBytes(buffer.toByteArray(), 0, 8); } catch (IOException e) { throw new AssertionError("write"); } }
/** Append a float as a four byte number. */ public void appendFloat(float x) { ByteArrayOutputStream buffer = new ByteArrayOutputStream(4); DataOutputStream bufout = new DataOutputStream(buffer); try { bufout.writeFloat(x); appendBytes(buffer.toByteArray(), 0, 4); } catch (IOException e) { throw new AssertionError("write"); } }
/** Append a long as an eight byte number. */ public void appendLong(long x) { ByteArrayOutputStream buffer = new ByteArrayOutputStream(8); DataOutputStream bufout = new DataOutputStream(buffer); try { bufout.writeLong(x); appendBytes(buffer.toByteArray(), 0, 8); } catch (IOException e) { throw new AssertionError("write"); } }
/** Append a double as a eight byte number. */ public void appendDouble(double x) { ByteArrayOutputStream buffer = new ByteArrayOutputStream(8); DataOutputStream bufout = new DataOutputStream(buffer); try { bufout.writeDouble(x); appendBytes(buffer.toByteArray(), 0, 8); } catch (IOException e) { throw new AssertionError("write"); } }
/** Append a name. */ public void appendName(Name name) { appendBytes(name.getByteArray(), name.getByteOffset(), name.getByteLength()); }
/** Append a name. */ public void appendName(Name name) { appendBytes(name.getByteArray(), name.getByteOffset(), name.getByteLength()); }