private void checkState() throws IOException { switch (state) { case OFF: throw new NotActiveException("Object stream not active"); case ON: return; case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: discardReadObject(); return; default: throw new IllegalStateException("Unknown state"); } }
private void checkState() throws IOException { switch (state) { case OFF: throw new NotActiveException("Object stream not active"); case ON: return; case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: discardReadObject(); return; default: throw new IllegalStateException("Unknown state"); } }
private void checkState() throws IOException { switch (state) { case OFF: throw new NotActiveException("Object stream not active"); case ON: return; case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: discardReadObject(); return; default: throw new IllegalStateException("Unknown state"); } }
private void checkState() throws IOException { switch (state) { case OFF: throw new NotActiveException("Object stream not active"); case ON: return; case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: discardReadObject(); return; default: throw new IllegalStateException("Unknown state"); } }
private void checkState() throws IOException { switch (state) { case OFF: throw new NotActiveException("Object stream not active"); case ON: return; case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: discardReadObject(); return; default: throw new IllegalStateException("Unknown state"); } }
private void checkState() throws IOException { switch (state) { case OFF: throw new NotActiveException("Object stream not active"); case ON: return; case UNREAD_FIELDS: case UNREAD_FIELDS_EOB: discardReadObject(); return; default: throw new IllegalStateException("Unknown state"); } }