List of utility methods to do OutputStream Write
void | serialize(Object obj, OutputStream out) Serialize to output stream ObjectOutputStream os = new ObjectOutputStream(out);
os.writeObject(obj);
|
void | serialize(Object obj, OutputStream out) serialize ObjectOutputStream oout = new ObjectOutputStream(out);
oout.writeObject(obj);
oout.flush();
|
void | serialize(Object object, OutputStream out) serialize ObjectOutputStream objectOut = null; try { objectOut = new ObjectOutputStream(out); objectOut.writeObject(object); } finally { if (objectOut != null) { try { objectOut.close(); ... |
void | serialize(Object value, OutputStream targetOutputStream) serialize ObjectOutputStream taos = null; try { taos = new ObjectOutputStream(targetOutputStream); taos.writeObject(value); } catch (Exception e) { throw new IllegalStateException(e); } finally { try { ... |
void | serialize(OutputStream os, String... params) Serialize zero or more string parameters, closing the supplied OutputStream. serializeSpecial(os, params); os.close(); |
void | serialize(OutputStream out, Object obj) serialize if (out == null) throw new NullPointerException("out"); if (obj == null) throw new NullPointerException("obj"); ObjectOutputStream objOut = new ObjectOutputStream(out); objOut.writeObject(obj); |
void | serialize(Serializable obj, ByteArrayOutputStream bout) Serialize the given object into the given stream try { ObjectOutputStream out = new ObjectOutputStream(bout); out.writeObject(obj); out.close(); } catch (IOException e) { throw new IllegalStateException("Could not serialize " + obj, e); |
void | serialize(Serializable obj, OutputStream outputStream) Serializes an The stream will be closed once the object is written. if (outputStream == null) { throw new IllegalArgumentException("The OutputStream must not be null"); ObjectOutputStream out = null; try { out = new ObjectOutputStream(outputStream); out.writeObject(obj); } catch (IOException ex) { ... |
void | serialize(Serializable obj, OutputStream outputStream) serialize if (outputStream == null) { throw new IllegalArgumentException("The OutputStream must not be null"); ObjectOutputStream out = null; try { out = new ObjectOutputStream(outputStream); out.writeObject(obj); } catch (IOException ex) { ... |
void | serialize(Serializable s, OutputStream os) serialize ObjectOutputStream out = new ObjectOutputStream(os);
out.writeObject(s);
out.close();
|