protected int start() { return getAndSet(UNREAD_FIELDS); }
protected void finish(final int restoreState) throws IOException { switch (getAndSet(restoreState)) { case OFF: // ?? break; case ON: // todo if blockmode, flush... break; case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: unmarshaller.discardFields(serializableClassDescriptor); return; default: throw new IllegalStateException("Unknown state"); } }
public void defaultReadObject() throws IOException, ClassNotFoundException { int old = getAndSet(ON); switch (old) { case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: break; default: throw new NotActiveException("readFields() may only be called when the fields have not yet been read"); } try { unmarshaller.readFields(current, serializableClassDescriptor, false); if (old == UNREAD_FIELDS_EOB) { restoreIdx = blockUnmarshaller.tempEndOfStream(); } } finally { serializableClassDescriptor = null; current = null; } }
void discardReadObject() throws IOException { int old = getAndSet(ON); switch (old) { case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: break; default: throw new NotActiveException("readFields() may only be called when the fields have not yet been read"); } try { unmarshaller.discardFields(serializableClassDescriptor); if (old == UNREAD_FIELDS_EOB) { restoreIdx = blockUnmarshaller.tempEndOfStream(); } } finally { serializableClassDescriptor = null; current = null; } }
public GetField readFields() throws IOException, ClassNotFoundException { int old = getAndSet(ON); switch (old) { case UNREAD_FIELDS:
protected int start() { return getAndSet(UNREAD_FIELDS); }
protected int start() { return getAndSet(UNREAD_FIELDS); }
protected int start() { return getAndSet(UNREAD_FIELDS); }
protected int start() { return getAndSet(UNREAD_FIELDS); }
protected int start() { return getAndSet(UNREAD_FIELDS); }
protected void finish(final int restoreState) throws IOException { switch (getAndSet(restoreState)) { case OFF: // ?? break; case ON: // todo if blockmode, flush... break; case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: unmarshaller.discardFields(serializableClassDescriptor); return; default: throw new IllegalStateException("Unknown state"); } }
protected void finish(final int restoreState) throws IOException { switch (getAndSet(restoreState)) { case OFF: // ?? break; case ON: // todo if blockmode, flush... break; case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: unmarshaller.discardFields(serializableClassDescriptor); return; default: throw new IllegalStateException("Unknown state"); } }
protected void finish(final int restoreState) throws IOException { switch (getAndSet(restoreState)) { case OFF: // ?? break; case ON: // todo if blockmode, flush... break; case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: unmarshaller.discardFields(serializableClassDescriptor); return; default: throw new IllegalStateException("Unknown state"); } }
protected void finish(final int restoreState) throws IOException { switch (getAndSet(restoreState)) { case OFF: // ?? break; case ON: // todo if blockmode, flush... break; case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: unmarshaller.discardFields(serializableClassDescriptor); return; default: throw new IllegalStateException("Unknown state"); } }
protected void finish(final int restoreState) throws IOException { switch (getAndSet(restoreState)) { case OFF: // ?? break; case ON: // todo if blockmode, flush... break; case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: unmarshaller.discardFields(serializableClassDescriptor); return; default: throw new IllegalStateException("Unknown state"); } }
void discardReadObject() throws IOException { int old = getAndSet(ON); switch (old) { case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: break; default: throw new NotActiveException("readFields() may only be called when the fields have not yet been read"); } try { unmarshaller.discardFields(serializableClassDescriptor); if (old == UNREAD_FIELDS_EOB) { restoreIdx = blockUnmarshaller.tempEndOfStream(); } } finally { serializableClassDescriptor = null; current = null; } }
void discardReadObject() throws IOException { int old = getAndSet(ON); switch (old) { case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: break; default: throw new NotActiveException("readFields() may only be called when the fields have not yet been read"); } try { unmarshaller.discardFields(serializableClassDescriptor); if (old == UNREAD_FIELDS_EOB) { restoreIdx = blockUnmarshaller.tempEndOfStream(); } } finally { serializableClassDescriptor = null; current = null; } }
void discardReadObject() throws IOException { int old = getAndSet(ON); switch (old) { case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: break; default: throw new NotActiveException("readFields() may only be called when the fields have not yet been read"); } try { unmarshaller.discardFields(serializableClassDescriptor); if (old == UNREAD_FIELDS_EOB) { restoreIdx = blockUnmarshaller.tempEndOfStream(); } } finally { serializableClassDescriptor = null; current = null; } }
void discardReadObject() throws IOException { int old = getAndSet(ON); switch (old) { case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: break; default: throw new NotActiveException("readFields() may only be called when the fields have not yet been read"); } try { unmarshaller.discardFields(serializableClassDescriptor); if (old == UNREAD_FIELDS_EOB) { restoreIdx = blockUnmarshaller.tempEndOfStream(); } } finally { serializableClassDescriptor = null; current = null; } }
public void defaultReadObject() throws IOException, ClassNotFoundException { int old = getAndSet(ON); switch (old) { case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: break; default: throw new NotActiveException("readFields() may only be called when the fields have not yet been read"); } try { unmarshaller.readFields(current, serializableClassDescriptor, false); if (old == UNREAD_FIELDS_EOB) { restoreIdx = blockUnmarshaller.tempEndOfStream(); } } finally { serializableClassDescriptor = null; current = null; } }