public DataOutputStream getDataOutputStream() { return underlying.getDataOutputStream(); }
public DataOutputStream getDataOutputStream() { return underlying.getDataOutputStream(); }
@Override protected void doWrite(DataOutputExtended output, Integer value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeByte(value); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Double value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeDouble(value); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Short value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeShort(value.shortValue()); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Integer value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeShort(value); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, String value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeUTF(value); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Integer value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeInt(value.intValue()); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Character value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeLong(value.charValue()); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, String value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeUTF(value); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Boolean value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeBoolean(value); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Integer value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeByte(value); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Double value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeDouble(value); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Short value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeShort(value.shortValue()); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Long value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeLong(value.intValue()); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Byte value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeByte(value.byteValue()); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Integer value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeInt(value.intValue()); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Character value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeLong(value.charValue()); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Serializable value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append("[SERIALIZABLE]")); } // write out as blob of bytes ObjectOutputStream oos = new ObjectOutputStream(output.getDataOutputStream()); oos.writeObject(value); oos.flush(); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Long value) throws IOException { try { if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(value)); } DataOutputStream outputStream = output.getDataOutputStream(); outputStream.writeLong(value.intValue()); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override