/** * Close the output. */ public void close() throws IOException { _out.close(); } }
@Override public void close() throws IOException { Hessian2Output out = _out; _out = null; if (out != null) { _cipherOut.close(); _bodyOut.close(); out.writeInt(0); out.completeEnvelope(); out.close(); } } }
@Override public void close() throws IOException { Hessian2Output out = _out; _out = null; if (out != null) { _deflateOut.close(); _bodyOut.close(); out.writeInt(0); out.completeEnvelope(); out.close(); } } }
@Override public void close() throws IOException { Hessian2Output out = _out; _out = null; if (out == null) return; _bodyOut.close(); byte[] sig = _mac.doFinal(); out.writeInt(1); out.writeString("signature"); out.writeBytes(sig); out.completeEnvelope(); out.close(); } }
/** * Close the output. */ public void close() throws IOException { _out.close(); } }
/** * Close the output. */ public void close() throws IOException { _out.close(); } }
/** * Close the output. */ public void close() throws IOException { _out.close(); } }
/** * Close the output. */ public void close() throws IOException { _out.close(); } }
/** * Close the output. */ public void close() throws IOException { _out.close(); } }
private static void closeQuietly(Hessian2Output hessian2Output) { try { if (hessian2Output != null) { hessian2Output.close(); } } catch (IOException e) { logger.warn("close hessian2Output failed"); } }
private byte[] serializeObject(Object object) throws IOException { ByteArrayOutputStream os = new ByteArrayOutputStream(); Hessian2Output hout = new Hessian2Output(os); hout.writeObject(object); hout.close(); byte[] result = os.toByteArray(); os.close(); return result; }
@Override public void close() throws IOException { Hessian2Output out = _out; _out = null; if (out != null) { _cipherOut.close(); _bodyOut.close(); out.writeInt(0); out.completeEnvelope(); out.close(); } } }
public void close() throws IOException { Hessian2Output out = _out; _out = null; if (out != null) { _deflateOut.close(); _bodyOut.close(); out.writeInt(0); out.completeEnvelope(); out.close(); } } }
public void close() throws IOException { Hessian2Output out = _out; _out = null; if (out != null) { _deflateOut.close(); _bodyOut.close(); out.writeInt(0); out.completeEnvelope(); out.close(); } } }
public void close() throws IOException { Hessian2Output out = _out; _out = null; if (out != null) { _cipherOut.close(); _bodyOut.close(); out.writeInt(0); out.completeEnvelope(); out.close(); } } }
public void close() throws IOException { Hessian2Output out = _out; _out = null; if (out != null) { _cipherOut.close(); _bodyOut.close(); out.writeInt(0); out.completeEnvelope(); out.close(); } } }
public void close() throws IOException { Hessian2Output out = _out; _out = null; if (out != null) { _cipherOut.close(); _bodyOut.close(); out.writeInt(0); out.completeEnvelope(); out.close(); } } }
public void close() throws IOException { Hessian2Output out = _out; _out = null; if (out != null) { _deflateOut.close(); _bodyOut.close(); out.writeInt(0); out.completeEnvelope(); out.close(); } } }
@Override public void close() throws IOException { Hessian2Output out = _out; _out = null; if (out != null) { _deflateOut.close(); _bodyOut.close(); out.writeInt(0); out.completeEnvelope(); out.close(); } } }
@Override public void close() throws IOException { Hessian2Output out = _out; _out = null; if (out != null) { _deflateOut.close(); _bodyOut.close(); out.writeInt(0); out.completeEnvelope(); out.close(); } } }