@Override public final void writeChars(String s) throws IOException { out.writeChars(s); }
public final void writeChars (String s) throws IOException { dos.writeChars(s); }
public final void writeChars (String s) throws IOException { dos.writeChars(s); }
@Override public final void writeChars(String s) throws IOException { out.writeChars(s); }
@Override public final void writeChars(String s) throws IOException { out.writeChars(s); }
@Override public void writeChars(String s) throws IOException { m_dataOutputStream.writeChars(s); }
@Override public void writeChars(String s) throws IOException { dos.writeChars(s); }
public final void writeChars(String s) throws IOException { out.writeChars(s); }
/** * Writes the string {@code value} as a sequence of characters to the target * stream. * * @param value * the string to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeChars(String value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeChars(value); }
@Override public void printTo(DataOutputStream out) throws IOException { while(keyIterator.hasNext()) { byte[] keyBytes = keyIterator.next().get(); out.writeInt(keyBytes.length); out.write(keyBytes); out.writeChars(ByteUtils.toHexString(keyBytes) + "\n"); } } });
@Override public void printTo(DataOutputStream out) throws IOException { while(keyIterator.hasNext()) { byte[] keyBytes = keyIterator.next().get(); out.writeChars(ByteUtils.toHexString(keyBytes) + "\n"); } } });
@Override public void printTo(DataOutputStream out) throws IOException { while(keyIterator.hasNext()) { byte[] keyBytes = keyIterator.next().get(); out.writeChars(ByteUtils.toHexString(keyBytes) + "\n"); } } });
@Override public void printTo(DataOutputStream out) throws IOException { while(entriesIterator.hasNext()) { Pair<ByteArray, Versioned<byte[]>> kvPair = entriesIterator.next(); byte[] keyBytes = kvPair.getFirst().get(); VectorClock clock = ((VectorClock) kvPair.getSecond().getVersion()); byte[] valueBytes = kvPair.getSecond().getValue(); out.writeChars(ByteUtils.toHexString(keyBytes)); out.writeChars(","); out.writeChars(clock.toString()); out.writeChars(","); out.writeChars(ByteUtils.toHexString(valueBytes)); out.writeChars("\n"); } } });
@Override public void printTo(DataOutputStream out) throws IOException { while(entryIterator.hasNext()) { Pair<ByteArray, Versioned<byte[]>> kvPair = entryIterator.next(); byte[] keyBytes = kvPair.getFirst().get(); VectorClock clock = ((VectorClock) kvPair.getSecond().getVersion()); byte[] valueBytes = kvPair.getSecond().getValue(); out.writeChars(ByteUtils.toHexString(keyBytes)); out.writeChars(","); out.writeChars(clock.toString()); out.writeChars(","); out.writeChars(ByteUtils.toHexString(valueBytes)); out.writeChars("\n"); } } });
dos.writeChars(schema.toString());
dos.writeChars( name ); String string = getBigNumber().toString(); dos.writeInt( string.length() ); dos.writeChars( string );
String string = getBigNumber().toString(); dos.writeInt( string.length() ); dos.writeChars( string );
/** * {@inheritDoc} */ @Override public void writeChars(String s) throws IOException { out.writeChars(s); }
ByteArrayOutputStream out = new ByteArrayOutputStream(); { // conversion from "yourObject" to byte[] DataOutputStream dos = new DataOuputStream(out); dos.writeInt(yourObject.intProperty); dos.writeByte(yourObject.byteProperty); dos.writeFloat(yourObject.floatProperty); dos.writeChars(yourObject.stringProperty); dos.close(); } byte[] byteArray = out.toByteArray();
private void saveExtensions(Map<String, byte[]> extensions, DataOutputStream dos) throws IOException { dos.writeInt(extensions.size()); for (String oid : extensions.keySet()) { dos.writeInt(oid.length()); dos.writeChars(oid); byte[] value = extensions.get(oid); dos.writeInt(value.length); dos.write(value); } } }