@Override public synchronized void close() throws IOException { if(channel!=null) { channel.send(new EOF(oid)); channel = null; oid = -1; } }
public synchronized void write(char[] cbuf) throws IOException { if(closed) throw new IOException("stream is already closed"); if(channel==null) { if(tmp==null) tmp = new CharArrayWriter(); tmp.write(cbuf); } else { channel.send(new Chunk(oid,cbuf)); } }
@Override protected void finalize() throws Throwable { super.finalize(); // if we haven't done so, release the exported object on the remote side. if (channel != null) { channel.send(new Unexport(oid)); channel = null; oid = -1; } }
private void doClose() throws IOException { channel.send(new EOF(oid)); channel = null; oid = -1; }
protected void finalize() throws Throwable { // unexport the remote object if(channel!=null && !autoUnexportByCaller) channel.send(new UnexportCommand(oid)); super.finalize(); }
protected void finalize() throws Throwable { // unexport the remote object if(channel!=null && !autoUnexportByCaller) channel.send(new UnexportCommand(oid)); super.finalize(); }
@Override public synchronized void close() throws IOException { if(channel!=null) { channel.send(new EOF(oid)); channel = null; oid = -1; } }
public synchronized void flush() throws IOException { if (channel != null) { channel.send(new Flush(oid)); } }
@Override public synchronized void close() throws IOException { if(channel!=null) { channel.send(new EOF(oid)); channel = null; oid = -1; } }
public synchronized void flush() throws IOException { if (channel != null) { channel.send(new Flush(oid)); } }
public synchronized void close() throws IOException { closed = true; if(channel!=null) { channel.send(new EOF(oid)); channel = null; oid = -1; } }
public synchronized void close() throws IOException { closed = true; if(channel!=null) { channel.send(new EOF(oid)); channel = null; oid = -1; } }
public synchronized void write(char[] cbuf) throws IOException { if(closed) throw new IOException("stream is already closed"); if(channel==null) { if(tmp==null) tmp = new CharArrayWriter(); tmp.write(cbuf); } else { channel.send(new Chunk(oid,cbuf)); } }
public synchronized void write(char[] cbuf) throws IOException { if(closed) throw new IOException("stream is already closed"); if(channel==null) { if(tmp==null) tmp = new CharArrayWriter(); tmp.write(cbuf); } else { channel.send(new Chunk(oid,cbuf)); } }
protected void finalize() throws Throwable { // unexport the remote object if(channel!=null && !autoUnexportByCaller) channel.send(new UnexportCommand(oid)); super.finalize(); }
@Override public synchronized void close() throws IOException { if(channel!=null) { channel.send(new EOF(oid)); channel = null; oid = -1; } }
public synchronized void flush() throws IOException { if (channel != null) { channel.send(new Flush(oid)); } }
@Override protected void finalize() throws Throwable { super.finalize(); // if we haven't done so, release the exported object on the remote side. if (channel != null) { channel.send(new Unexport(oid)); channel = null; oid = -1; } }
private void doClose() throws IOException { channel.send(new EOF(oid)); channel = null; oid = -1; }
public synchronized void flush() throws IOException { if (channel != null && /* see #finalize */ oid != -1) { channel.send(new Flush(channel.newIoId(), oid)); } }