1920212223242526
public synchronized int read() throws MCConnectionException { try { return di.read(); } catch (IOException e) { throw new MCConnectionException(); } }
2728293031323334
public synchronized boolean readBoolean() throws MCConnectionException { try { return di.read() == 1; } catch (IOException e) { throw new MCConnectionException(); } }
3839404142434445
public synchronized short readShort() throws MCConnectionException { try { return di.readShort(); } catch (IOException e) { throw new MCConnectionException(); } }
5051525354555657
public synchronized int readInt() throws MCConnectionException { try { return di.readInt(); } catch (IOException e) { throw new MCConnectionException(); } }
5859606162636465
public synchronized float readFloat() throws MCConnectionException { try { return di.readFloat(); } catch (IOException e) { throw new MCConnectionException(); } }
6970717273747576
public synchronized double readDouble() throws MCConnectionException { try { return di.readDouble(); } catch (IOException e) { throw new MCConnectionException(); } }
7778798081828384
public synchronized Long readLong() throws MCConnectionException { try { return di.readLong(); } catch (IOException e) { throw new MCConnectionException(); } }
9091929394959697
byte[] bytes = new byte[numberofbytes]; try { di.read(bytes); return bytes; } catch (IOException e) { throw new MCConnectionException(); } }
115116117118119120121122
*/ public void skipBytes(int i) throws MCConnectionException { try { di.skipBytes(8); } catch (IOException e) { throw new MCConnectionException(); } }
3132333435363738
*/ public synchronized void send(byte[] message) throws MCConnectionException { try { os.write(message); } catch (IOException e) { throw new MCConnectionException(); } }