forked from I2P_Developers/i2p.i2p
2005-10-20 jrandom
* Workaround a bug in GCJ's Calendar implementation * Propery throw an exception in the streaming lib if we try to write to a closed stream. This will hopefully help clear some I2Phex bugs (thanks GregorK!)
This commit is contained in:
@@ -77,6 +77,7 @@ public class MessageOutputStream extends OutputStream {
|
||||
}
|
||||
|
||||
public void write(byte b[], int off, int len) throws IOException {
|
||||
if (_closed) throw new IOException("Already closed");
|
||||
if (_log.shouldLog(Log.DEBUG))
|
||||
_log.debug("write(b[], " + off + ", " + len + ") ");
|
||||
int cur = off;
|
||||
|
Reference in New Issue
Block a user