Object doReadObject(final boolean unshared, final boolean discardMissing) throws IOException, ClassNotFoundException { return doReadObject(readUnsignedByte(), unshared, discardMissing); }
protected Object doReadObject(final boolean unshared) throws ClassNotFoundException, IOException { final Object obj = doReadObject(readUnsignedByte(), unshared, false); if (depth == 0) { final SortedSet<Validator> validators = this.validators; if (validators != null) { this.validators = null; validatorSeq = 0; for (Validator validator : validators) { validator.getValidation().validateObject(); } } } return obj; }
Object doReadNestedObject(final boolean unshared, final String enclosingClassName) throws ClassNotFoundException, IOException { try { return doReadObject(unshared); } catch (IOException e) { TraceInformation.addIncompleteObjectInformation(e, enclosingClassName); throw e; } catch (ClassNotFoundException e) { TraceInformation.addIncompleteObjectInformation(e, enclosingClassName); throw e; } catch (RuntimeException e) { TraceInformation.addIncompleteObjectInformation(e, enclosingClassName); throw e; } }
Object doReadMapObject(final boolean unshared, final int idx, final int size, final boolean key, final boolean discardMissing) throws ClassNotFoundException, IOException { try { return doReadObject(unshared, discardMissing); } catch (IOException e) { TraceInformation.addIndexInformation(e, idx, size, key ? TraceInformation.IndexType.MAP_KEY : TraceInformation.IndexType.MAP_VALUE); throw e; } catch (ClassNotFoundException e) { TraceInformation.addIndexInformation(e, idx, size, key ? TraceInformation.IndexType.MAP_KEY : TraceInformation.IndexType.MAP_VALUE); throw e; } catch (RuntimeException e) { TraceInformation.addIndexInformation(e, idx, size, key ? TraceInformation.IndexType.MAP_KEY : TraceInformation.IndexType.MAP_VALUE); throw e; } }
Object doReadCollectionObject(final boolean unshared, final int idx, final int size, final boolean discardMissing) throws ClassNotFoundException, IOException { try { return doReadObject(unshared, discardMissing); } catch (IOException e) { TraceInformation.addIndexInformation(e, idx, size, TraceInformation.IndexType.ELEMENT); throw e; } catch (ClassNotFoundException e) { TraceInformation.addIndexInformation(e, idx, size, TraceInformation.IndexType.ELEMENT); throw e; } catch (RuntimeException e) { TraceInformation.addIndexInformation(e, idx, size, TraceInformation.IndexType.ELEMENT); throw e; } }
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException { if (remaining > 0) { throw createOptionalDataException(remaining); } else if (remaining == -1) { throw createOptionalDataException(true); } final int leadByte = riverUnmarshaller.read(); if (leadByte == -1 || leadByte == Protocol.ID_END_BLOCK_DATA) { remaining = -1; throw createOptionalDataException(true); } return riverUnmarshaller.doReadObject(leadByte, unshared, false); }
void readToEndBlockData() throws IOException, ClassNotFoundException { for (;;) { while (remaining > 0) { skipBytes(remaining); } final int b = riverUnmarshaller.read(); switch (b) { case -1: remaining = -1; return; case Protocol.ID_END_BLOCK_DATA: remaining = -1; return; case Protocol.ID_START_BLOCK_SMALL: case Protocol.ID_START_BLOCK_MEDIUM: case Protocol.ID_START_BLOCK_LARGE: readBlockHeader(b); break; default: // consume object... or whatever riverUnmarshaller.doReadObject(b, false, true); break; } } }
doReadObject(serializableField.isUnshared(), true); break;
doReadObject(serializableField.isUnshared(), true); break; serializableField.setObject(obj, doReadObject(serializableField.isUnshared(), discardMissing)); break;
Object doReadObject(final boolean unshared, final boolean discardMissing) throws IOException, ClassNotFoundException { return doReadObject(readUnsignedByte(), unshared, discardMissing); }
Object doReadObject(final boolean unshared, final boolean discardMissing) throws IOException, ClassNotFoundException { return doReadObject(readUnsignedByte(), unshared, discardMissing); }
Object doReadNestedObject(final boolean unshared, final String enclosingClassName) throws ClassNotFoundException, IOException { try { return doReadObject(unshared); } catch (IOException e) { TraceInformation.addIncompleteObjectInformation(e, enclosingClassName); throw e; } catch (ClassNotFoundException e) { TraceInformation.addIncompleteObjectInformation(e, enclosingClassName); throw e; } catch (RuntimeException e) { TraceInformation.addIncompleteObjectInformation(e, enclosingClassName); throw e; } }
Object doReadMapObject(final boolean unshared, final int idx, final int size, final boolean key) throws ClassNotFoundException, IOException { try { return doReadObject(unshared); } catch (IOException e) { TraceInformation.addIndexInformation(e, idx, size, key ? TraceInformation.IndexType.MAP_KEY : TraceInformation.IndexType.MAP_VALUE); throw e; } catch (ClassNotFoundException e) { TraceInformation.addIndexInformation(e, idx, size, key ? TraceInformation.IndexType.MAP_KEY : TraceInformation.IndexType.MAP_VALUE); throw e; } catch (RuntimeException e) { TraceInformation.addIndexInformation(e, idx, size, key ? TraceInformation.IndexType.MAP_KEY : TraceInformation.IndexType.MAP_VALUE); throw e; } }
protected Object doReadObject(final boolean unshared) throws ClassNotFoundException, IOException { final Object obj = doReadObject(readUnsignedByte(), unshared); if (depth == 0) { final SortedSet<Validator> validators = this.validators; if (validators != null) { this.validators = null; validatorSeq = 0; for (Validator validator : validators) { validator.getValidation().validateObject(); } } } return obj; }
Object doReadMapObject(final boolean unshared, final int idx, final int size, final boolean key, final boolean discardMissing) throws ClassNotFoundException, IOException { try { return doReadObject(unshared, discardMissing); } catch (IOException e) { TraceInformation.addIndexInformation(e, idx, size, key ? TraceInformation.IndexType.MAP_KEY : TraceInformation.IndexType.MAP_VALUE); throw e; } catch (ClassNotFoundException e) { TraceInformation.addIndexInformation(e, idx, size, key ? TraceInformation.IndexType.MAP_KEY : TraceInformation.IndexType.MAP_VALUE); throw e; } catch (RuntimeException e) { TraceInformation.addIndexInformation(e, idx, size, key ? TraceInformation.IndexType.MAP_KEY : TraceInformation.IndexType.MAP_VALUE); throw e; } }
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException { if (remaining > 0) { throw createOptionalDataException(remaining); } else if (remaining == -1) { throw createOptionalDataException(true); } final int leadByte = riverUnmarshaller.read(); if (leadByte == -1 || leadByte == Protocol.ID_END_BLOCK_DATA) { remaining = -1; throw createOptionalDataException(true); } return riverUnmarshaller.doReadObject(leadByte, unshared, false); }
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException { if (remaining > 0) { throw createOptionalDataException(remaining); } else if (remaining == -1) { throw createOptionalDataException(true); } final int leadByte = riverUnmarshaller.read(); if (leadByte == -1 || leadByte == Protocol.ID_END_BLOCK_DATA) { remaining = -1; throw createOptionalDataException(true); } return riverUnmarshaller.doReadObject(leadByte, unshared, false); }
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException { if (remaining > 0) { throw createOptionalDataException(remaining); } else if (remaining == -1) { throw createOptionalDataException(true); } final int leadByte = riverUnmarshaller.read(); if (leadByte == -1 || leadByte == Protocol.ID_END_BLOCK_DATA) { remaining = -1; throw createOptionalDataException(true); } return riverUnmarshaller.doReadObject(leadByte, unshared, false); }
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException { if (remaining > 0) { throw createOptionalDataException(remaining); } else if (remaining == -1) { throw createOptionalDataException(true); } final int leadByte = riverUnmarshaller.read(); if (leadByte == -1 || leadByte == Protocol.ID_END_BLOCK_DATA) { remaining = -1; throw createOptionalDataException(true); } return riverUnmarshaller.doReadObject(leadByte, unshared); }
private Object readObject(boolean unshared) throws ClassNotFoundException, IOException { if (remaining > 0) { throw createOptionalDataException(remaining); } else if (remaining == -1) { throw createOptionalDataException(true); } final int leadByte = riverUnmarshaller.read(); if (leadByte == -1 || leadByte == Protocol.ID_END_BLOCK_DATA) { remaining = -1; throw createOptionalDataException(true); } return riverUnmarshaller.doReadObject(leadByte, unshared, false); }