@Override public void close() throws IOException { out.close(); } }
protected void readStreamHeader() throws IOException, StreamCorruptedException { checkSignature(is); }
public Object readUnshared() throws IOException, ClassNotFoundException { return readObjectOverride(); }
private JBossLogWriterOutput(OutputStream out) throws IOException { this.out = new JBossObjectOutputStream(out); }
private JBossLogReaderInput(InputStream is) { try { in = new JBossObjectInputStream(is); } catch (IOException e) { throw Throwables.propagate(e); } }
@Override public void writeObject(Object object) throws IOException { out.writeObject(object); }
@Override public Object readObject() throws IOException { try { Object result = in.readObject(); return result; } catch (ClassNotFoundException e) { throw Throwables.propagate(e); } } }
/** Reuses every primitive value to recreate another object. */ public Object smartClone(Object obj, SafeCloningRepository safeToReuse) throws IOException { return smartClone(obj,safeToReuse,Thread.currentThread().getContextClassLoader()); }
public ClassLoader getClassLoader() { return super.getClassLoader(); }
public void writeUnshared(Object obj) throws IOException { writeObjectOverride(obj); }
public void close() throws IOException { flush(); dataOutput.close(); }
/** * Marshall the obj or pass by ref, based on passByRef. */ private static <T> T marshallOrPass(T obj, Class<T> type) throws IOException, ClassNotFoundException { if(passByRef) return obj; else return type.cast(new MarshalledObjectForLocalCalls(obj).get()); } }
protected void writeObjectOverride(Object obj) throws IOException { checkOutput(); objectOutput.writeObject(obj); }
/** Reuses every primitive value to recreate another object. */ public Object smartClone(Object obj, SafeCloningRepository safeToReuse) throws IOException { return smartClone(obj,safeToReuse,Thread.currentThread().getContextClassLoader()); }
public Object readUnshared() throws IOException, ClassNotFoundException { return readObjectOverride(); }
public ClassLoader getClassLoader() { return super.getClassLoader(); }
public void writeUnshared(Object obj) throws IOException { writeObjectOverride(obj); }
public void close() throws IOException { flush(); dataOutput.close(); }
/** Reuses every primitive value to recreate another object. */ public Object smartClone(Object obj) throws IOException { return smartClone(obj,null,Thread.currentThread().getContextClassLoader()); }
/** Reuses every primitive value to recreate another object. */ public Object smartClone(Object obj) throws IOException { return smartClone(obj,null,Thread.currentThread().getContextClassLoader()); }