protected void readSerial(final SerialUnmarshaller serialUnmarshaller, final SerializableClass sc, final Object subject) throws IOException, ClassNotFoundException { discardFields(serialUnmarshaller); if ((flags & SC_WRITE_METHOD) != 0) { final BlockUnmarshaller blockUnmarshaller = serialUnmarshaller.getBlockUnmarshaller(); blockUnmarshaller.readToEndBlockData(); blockUnmarshaller.unblock(); } }
public char readChar() throws IOException { if (remaining < 2) { return (char) (readUnsignedByte() << 8 | readUnsignedByte()); } else { remaining -= 2; return serialUnmarshaller.readChar(); } }
public long readLong() throws IOException { if (remaining < 8) { return (long) readUnsignedByte() << 56L | (long) readUnsignedByte() << 48L | (long) readUnsignedByte() << 40L | (long) readUnsignedByte() << 32L | (long) readUnsignedByte() << 24L | (long) readUnsignedByte() << 16L | (long) readUnsignedByte() << 8L | (long) readUnsignedByte(); } else { remaining -= 8; return serialUnmarshaller.readLong(); } }
public short readShort() throws IOException { if (remaining < 2) { return (short) (readUnsignedByte() << 8 | readUnsignedByte()); } else { remaining -= 2; return serialUnmarshaller.readShort(); } }
public int readInt() throws IOException { if (remaining < 4) { return readUnsignedByte() << 24 | readUnsignedByte() << 16 | readUnsignedByte() << 8 | readUnsignedByte(); } else { remaining -= 4; return serialUnmarshaller.readInt(); } }
private void doWriteObject(final Object obj, final boolean unshared) throws IOException { flush(); serialMarshaller.doWriteObject(obj, unshared); flush(); }
public int readUnsignedShort() throws IOException { if (remaining < 2) { return readUnsignedByte() << 8 | readUnsignedByte(); } else { remaining -= 2; return serialUnmarshaller.readUnsignedShort(); } }
protected void readSerial(final SerialUnmarshaller serialUnmarshaller, final SerializableClass sc, final Object subject) throws IOException, ClassNotFoundException { discardFields(serialUnmarshaller); if ((flags & SC_WRITE_METHOD) != 0) { final BlockUnmarshaller blockUnmarshaller = serialUnmarshaller.getBlockUnmarshaller(); blockUnmarshaller.readToEndBlockData(); blockUnmarshaller.unblock(); } }
public short readShort() throws IOException { if (remaining < 2) { return (short) (readUnsignedByte() << 8 | readUnsignedByte()); } else { remaining -= 2; return serialUnmarshaller.readShort(); } }
public char readChar() throws IOException { if (remaining < 2) { return (char) (readUnsignedByte() << 8 | readUnsignedByte()); } else { remaining -= 2; return serialUnmarshaller.readChar(); } }
public int readInt() throws IOException { if (remaining < 4) { return readUnsignedByte() << 24 | readUnsignedByte() << 16 | readUnsignedByte() << 8 | readUnsignedByte(); } else { remaining -= 4; return serialUnmarshaller.readInt(); } }
public long readLong() throws IOException { if (remaining < 8) { return (long) readUnsignedByte() << 56L | (long) readUnsignedByte() << 48L | (long) readUnsignedByte() << 40L | (long) readUnsignedByte() << 32L | (long) readUnsignedByte() << 24L | (long) readUnsignedByte() << 16L | (long) readUnsignedByte() << 8L | (long) readUnsignedByte(); } else { remaining -= 8; return serialUnmarshaller.readLong(); } }
private void doWriteObject(final Object obj, final boolean unshared) throws IOException { flush(); serialMarshaller.doWriteObject(obj, unshared); flush(); }
public int readUnsignedShort() throws IOException { if (remaining < 2) { return readUnsignedByte() << 8 | readUnsignedByte(); } else { remaining -= 2; return serialUnmarshaller.readUnsignedShort(); } }
protected void readSerial(final SerialUnmarshaller serialUnmarshaller, final SerializableClass sc, final Object subject) throws IOException, ClassNotFoundException { discardFields(serialUnmarshaller); if ((flags & SC_WRITE_METHOD) != 0) { final BlockUnmarshaller blockUnmarshaller = serialUnmarshaller.getBlockUnmarshaller(); blockUnmarshaller.readToEndBlockData(); blockUnmarshaller.unblock(); } }
public short readShort() throws IOException { if (remaining < 2) { return (short) (readUnsignedByte() << 8 | readUnsignedByte()); } else { remaining -= 2; return serialUnmarshaller.readShort(); } }
public char readChar() throws IOException { if (remaining < 2) { return (char) (readUnsignedByte() << 8 | readUnsignedByte()); } else { remaining -= 2; return serialUnmarshaller.readChar(); } }
public int readInt() throws IOException { if (remaining < 4) { return readUnsignedByte() << 24 | readUnsignedByte() << 16 | readUnsignedByte() << 8 | readUnsignedByte(); } else { remaining -= 4; return serialUnmarshaller.readInt(); } }
protected void readSerial(final SerialUnmarshaller serialUnmarshaller, final SerializableClass sc, final Object subject) throws IOException, ClassNotFoundException { discardFields(serialUnmarshaller); if ((flags & SC_WRITE_METHOD) != 0) { final BlockUnmarshaller blockUnmarshaller = serialUnmarshaller.getBlockUnmarshaller(); blockUnmarshaller.readToEndBlockData(); blockUnmarshaller.unblock(); } }
public short readShort() throws IOException { if (remaining < 2) { return (short) (readUnsignedByte() << 8 | readUnsignedByte()); } else { remaining -= 2; return serialUnmarshaller.readShort(); } }