107108109110111112113114115116117
public double readDouble() throws IncompatibleModeException, IOException, InvalidPayloadException { if (_mode != READ_MODE) throw new IncompatibleModeException(); valid(); return _inputStream.readDouble(); }
118119120121122123124125126127128
public float readFloat() throws IncompatibleModeException, IOException, InvalidPayloadException { if (_mode != READ_MODE) throw new IncompatibleModeException(); valid(); return _inputStream.readFloat(); }
129130131132133134135136137138139
public short readShort() throws IncompatibleModeException, IOException, InvalidPayloadException { if (_mode != READ_MODE) throw new IncompatibleModeException(); valid(); return _inputStream.readShort(); }
140141142143144145146147148149150
public String readUTFString() throws IncompatibleModeException, IOException, InvalidPayloadException { if (_mode != READ_MODE) throw new IncompatibleModeException(); valid(); return _inputStream.readUTF(); }
151152153154155156157158159
public void writeBoolean(boolean b) throws IncompatibleModeException, IOException { if (_mode != WRITE_MODE) throw new IncompatibleModeException(); _outputStream.writeBoolean(b); }
159160161162163164165166167
} public void writeInt(int i) throws IncompatibleModeException, IOException { if (_mode != WRITE_MODE) throw new IncompatibleModeException(); _outputStream.writeInt(i); }
167168169170171172173174175
} public void writeLong(long l) throws IncompatibleModeException, IOException { if (_mode != WRITE_MODE) throw new IncompatibleModeException(); _outputStream.writeLong(l); }
175176177178179180181182183
} public void writeChar(char c) throws IncompatibleModeException, IOException { if (_mode != WRITE_MODE) throw new IncompatibleModeException(); _outputStream.writeChar(c); }
184185186187188189190191192
public void writeDouble(double d) throws IncompatibleModeException, IOException { if (_mode != WRITE_MODE) throw new IncompatibleModeException(); _outputStream.writeDouble(d); }
193194195196197198199200201
public void writeFloat(float f) throws IncompatibleModeException, IOException { if (_mode != WRITE_MODE) throw new IncompatibleModeException(); _outputStream.writeFloat(f); }