Package java.io

Examples of java.io.NotActiveException


        }
    }

    public void defaultWriteObject() throws IOException {
        if (! compareAndSetState(UNWRITTEN_FIELDS, ON)) {
            throw new NotActiveException("writeFields() may only be called when the fields have not yet been written");
        }
        try {
            marshaller.doWriteFields(serializableClass, current);
        } finally {
            putField = null;
View Full Code Here


    private void checkState() throws IOException {
        int state = this.state;
        if (state == ON) {
            return;
        } else if (state == OFF) {
            throw new NotActiveException("Object stream not active");
        } else if (state == UNWRITTEN_FIELDS) {
            this.state = ON;
            marshaller.doWriteEmptyFields(serializableClass);
            return;
        } else {
View Full Code Here

    public SimpleDataOutput(final ByteOutput byteOutput) {
        this(8192, byteOutput);
    }

    private static NotActiveException notActiveException() {
        return new NotActiveException("Output not started");
    }
View Full Code Here

                marshal(object, statefulWriter);
            }

            @Override
            public void writeFieldsToStream(final Map<String, Object> fields) throws NotActiveException {
                throw new NotActiveException("not in call to writeObject");
            }

            @Override
            public void defaultWriteObject() throws NotActiveException {
                throw new NotActiveException("not in call to writeObject");
            }

            @Override
            public void flush() {
                statefulWriter.flush();
View Full Code Here

                return result;
            }

            @Override
            public Map<String, Object> readFieldsFromStream() throws IOException {
                throw new NotActiveException("not in call to readObject");
            }

            @Override
            public void defaultReadObject() throws NotActiveException {
                throw new NotActiveException("not in call to readObject");
            }

            @Override
            public void registerValidation(final ObjectInputValidation validation, final int priority)
                    throws NotActiveException {
                throw new NotActiveException("stream inactive");
            }

            @Override
            public void close() {
                reader.close();
View Full Code Here

                }

                @Override
                public void registerValidation(final ObjectInputValidation validation, final int priority)
                        throws NotActiveException {
                    throw new NotActiveException("stream inactive");
                }

                @Override
                public void close() {
                    throw new UnsupportedOperationException(
View Full Code Here

    /* throws IOException, ClassNotFoundException, NotActiveException */
    {
        try {
            if (currentObject == null || currentClassDesc == null)
                // XXX I18N, logging needed.
                throw new NotActiveException("defaultReadObjectDelegate");

            // The array will be null unless fields were retrieved
            // remotely because of a serializable version difference.
            // Bug fix for 4365188.  See the definition of
            // defaultReadObjectFVDMembers for more information.
View Full Code Here

  /**
   * @see de.cesr.parma.core.PmAbstractParameterReader#initParameters()
   */
  public void initParameters() {
    try {
      throw new NotActiveException("Not yet implemented");
    } catch (NotActiveException e) {
      e.printStackTrace();
    }
    // TODO
  }
View Full Code Here

    }

    public synchronized void registerValidation(ObjectInputValidation obj,
            int prio) throws NotActiveException, InvalidObjectException {
        if (recursionDepth == 0) {
            throw new NotActiveException("readObject not Active");
        }

        if (obj == null) {
            throw new InvalidObjectException(
                    "Null is not a valid callback object");
View Full Code Here

            public void writeToStream(Object object) {
                marshal(object, statefulWriter);
            }

            public void writeFieldsToStream(Map fields) throws NotActiveException {
                throw new NotActiveException("not in call to writeObject");
            }

            public void defaultWriteObject() throws NotActiveException {
                throw new NotActiveException("not in call to writeObject");
            }

            public void flush() {
                statefulWriter.flush();
            }
View Full Code Here

TOP

Related Classes of java.io.NotActiveException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.