165166167168169170171172173
} public void writeLong(long l) throws IncompatibleModeException, IOException { if (_mode != WRITE_MODE) throw new IncompatibleModeException(); _outputStream.writeLong(l); }
173174175176177178179180181
} public void writeChar(char c) throws IncompatibleModeException, IOException { if (_mode == WRITE_MODE) throw new IncompatibleModeException(); _outputStream.writeChar(c); }
182183184185186187188189190
public void writeDouble(double d) throws IncompatibleModeException, IOException { if (_mode != WRITE_MODE) throw new IncompatibleModeException(); _outputStream.writeDouble(d); }
191192193194195196197198199
public void writeFloat(float f) throws IncompatibleModeException, IOException { if (_mode != WRITE_MODE) throw new IncompatibleModeException(); _outputStream.writeFloat(f); }
200201202203204205206207208
public void writeShort(short s) throws IncompatibleModeException, IOException { if (_mode != WRITE_MODE) throw new IncompatibleModeException(); _outputStream.writeShort(s); }
209210211212213214215216217
public void writeUTFString(String s) throws IncompatibleModeException, IOException { if (_mode != WRITE_MODE) throw new IncompatibleModeException(); _outputStream.writeUTF(s); }
6364656667686970717273
public boolean readBoolean() throws IncompatibleModeException, IOException, InvalidPayloadException { if (_mode != READ_MODE) throw new IncompatibleModeException(); valid(); return _inputStream.readBoolean(); }
7475767778798081828384
public int readInt() throws IncompatibleModeException, IOException, InvalidPayloadException { if (_mode != READ_MODE) throw new IncompatibleModeException(); valid(); return _inputStream.readInt(); }
8586878889909192939495
public long readLong() throws IncompatibleModeException, IOException, InvalidPayloadException { if (_mode != READ_MODE) throw new IncompatibleModeException(); valid(); return _inputStream.readLong(); }
96979899100101102103104105106
public char readChar() throws IncompatibleModeException, IOException, InvalidPayloadException { if (_mode != READ_MODE) throw new IncompatibleModeException(); valid(); return _inputStream.readChar(); }