979899100101102103104
public Object readObject() throws IOException, ClassNotFoundException { if (isOpen() && canRead()) { return getInputStream().readObject(); } else { throw new JWNLRuntimeException("PRINCETON_EXCEPTION_001"); } }
105106107108109110111112
public void writeObject(Object obj) throws IOException { if (isOpen() && canWrite()) { getOutputStream().writeObject(obj); } else { throw new JWNLRuntimeException("PRINCETON_EXCEPTION_002"); } }