String doReadString() throws IOException, ClassNotFoundException { final int leadByte = readUnsignedByte(); switch (leadByte) { case TC_NULL: return null; case TC_REFERENCE: try { return (String) readBackReference(readInt()); } catch (ClassCastException e) { throw new StreamCorruptedException("Expected a string backreference"); } case TC_STRING: return (String) doReadObject(leadByte, false); default: throw new StreamCorruptedException("Expected a string object"); } }
String doReadString() throws IOException, ClassNotFoundException { final int leadByte = readUnsignedByte(); switch (leadByte) { case TC_NULL: return null; case TC_REFERENCE: try { return (String) readBackReference(readInt()); } catch (ClassCastException e) { throw new StreamCorruptedException("Expected a string backreference"); } case TC_STRING: return (String) doReadObject(leadByte, false); default: throw new StreamCorruptedException("Expected a string object"); } }
String doReadString() throws IOException, ClassNotFoundException { final int leadByte = readUnsignedByte(); switch (leadByte) { case TC_NULL: return null; case TC_REFERENCE: try { return (String) readBackReference(readInt()); } catch (ClassCastException e) { throw new StreamCorruptedException("Expected a string backreference"); } case TC_STRING: return (String) doReadObject(leadByte, false); default: throw new StreamCorruptedException("Expected a string object"); } }
String doReadString() throws IOException, ClassNotFoundException { final int leadByte = readUnsignedByte(); switch (leadByte) { case TC_NULL: return null; case TC_REFERENCE: try { return (String) readBackReference(readInt()); } catch (ClassCastException e) { throw new StreamCorruptedException("Expected a string backreference"); } case TC_STRING: return (String) doReadObject(leadByte, false); default: throw new StreamCorruptedException("Expected a string object"); } }
void readBlockHeader(int leadByte) throws IOException { switch (leadByte) { case TC_BLOCKDATA: remaining = serialUnmarshaller.readUnsignedByte(); return; case TC_BLOCKDATALONG: final int len = serialUnmarshaller.readInt(); if (len < 0) { throw new StreamCorruptedException("Invalid block length"); } remaining = len; return; case TC_ENDBLOCKDATA: remaining = -1; return; default: throw badLeadByte(leadByte); } }
void readBlockHeader(int leadByte) throws IOException { switch (leadByte) { case TC_BLOCKDATA: remaining = serialUnmarshaller.readUnsignedByte(); return; case TC_BLOCKDATALONG: final int len = serialUnmarshaller.readInt(); if (len < 0) { throw new StreamCorruptedException("Invalid block length"); } remaining = len; return; case TC_ENDBLOCKDATA: remaining = -1; return; default: throw badLeadByte(leadByte); } }
void readBlockHeader(int leadByte) throws IOException { switch (leadByte) { case TC_BLOCKDATA: remaining = serialUnmarshaller.readUnsignedByte(); return; case TC_BLOCKDATALONG: final int len = serialUnmarshaller.readInt(); if (len < 0) { throw new StreamCorruptedException("Invalid block length"); } remaining = len; return; case TC_ENDBLOCKDATA: remaining = -1; return; default: throw badLeadByte(leadByte); } }
void readBlockHeader(int leadByte) throws IOException { switch (leadByte) { case TC_BLOCKDATA: remaining = serialUnmarshaller.readUnsignedByte(); return; case TC_BLOCKDATALONG: final int len = serialUnmarshaller.readInt(); if (len < 0) { throw new StreamCorruptedException("Invalid block length"); } remaining = len; return; case TC_ENDBLOCKDATA: remaining = -1; return; default: throw badLeadByte(leadByte); } }
public int readInt() throws IOException { if (remaining < 4) { return readUnsignedByte() << 24 | readUnsignedByte() << 16 | readUnsignedByte() << 8 | readUnsignedByte(); } else { remaining -= 4; return serialUnmarshaller.readInt(); } }
public int readInt() throws IOException { if (remaining < 4) { return readUnsignedByte() << 24 | readUnsignedByte() << 16 | readUnsignedByte() << 8 | readUnsignedByte(); } else { remaining -= 4; return serialUnmarshaller.readInt(); } }
public int readInt() throws IOException { if (remaining < 4) { return readUnsignedByte() << 24 | readUnsignedByte() << 16 | readUnsignedByte() << 8 | readUnsignedByte(); } else { remaining -= 4; return serialUnmarshaller.readInt(); } }
public int readInt() throws IOException { if (remaining < 4) { return readUnsignedByte() << 24 | readUnsignedByte() << 16 | readUnsignedByte() << 8 | readUnsignedByte(); } else { remaining -= 4; return serialUnmarshaller.readInt(); } }
serialUnmarshaller.readInt(); break;
serialUnmarshaller.readInt(); break;
serialUnmarshaller.readInt(); break;
serialUnmarshaller.readInt(); break;