@Override protected void doWrite(DataOutputExtended output, Encodable encodable) throws IOException { try { // write out class String className = encodable.getClass().getName(); if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(className)); } output.writeUTF(className); // recursively encode encodable.encode(output); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override
@Override protected void doWrite(DataOutputExtended output, Encodable encodable) throws IOException { try { // write out class String className = encodable.getClass().getName(); if (LOG.isDebugEnabled()) { log(this, new StringBuilder().append(className)); } output.writeUTF(className); // recursively encode encodable.encode(output); } finally { if (LOG.isDebugEnabled()) { unlog(this); } } } @Override