Package java.io.ObjectInputStream

Examples of java.io.ObjectInputStream.GetField


    */
   private void readObject(ObjectInputStream in)
      throws IOException, ClassNotFoundException
   {
      // Read in the serialPersistentFields
      GetField fields = in.readFields();
      byte[] zisBytes =  (byte[]) fields.get("zisBytes", null);
      this.jarURL = (URL) fields.get("jarURL", null);
      this.entryURL = (URL) fields.get("entryURL", null);
      this.lastModified = fields.get("lastModified", (long)-1);
      this.size = fields.get("size", (long)-1);
      // Initialize the jar entry map
      inited = new AtomicBoolean(false);
      ByteArrayInputStream bais = new ByteArrayInputStream(zisBytes);
      zis = new ZipInputStream(bais);
      this.init();
View Full Code Here


    */
   private void readObject(ObjectInputStream in)
      throws IOException, ClassNotFoundException
   {
      // Read in the serialPersistentFields
      GetField fields = in.readFields();
      byte[] zisBytes =  (byte[]) fields.get("zisBytes", null);
      this.jarURL = (URL) fields.get("jarURL", null);
      this.entryURL = (URL) fields.get("entryURL", null);
      this.lastModified = fields.get("lastModified", (long)-1);
      this.size = fields.get("size", (long)-1);
      // Initialize the jar entry map
      inited = new AtomicBoolean(false);
      ByteArrayInputStream bais = new ByteArrayInputStream(zisBytes);
      zis = new ZipInputStream(bais);
      this.init();
View Full Code Here

   private void readObject(ObjectInputStream in)
      throws IOException, ClassNotFoundException
   {
      // Read in the serialPersistentFields
      GetField fields = in.readFields();
      URI rootURI = (URI) fields.get("rootURI", null);
      this.parent = (VirtualFileHandler) fields.get("parent", null);
      this.name = (String) fields.get("name", null);
      VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURI);
      this.context = factory.getVFS(rootURI);
      this.references = new AtomicInteger(0);
      this.vfsUrl = (URL)fields.get("vfsUrl", null);
   }
View Full Code Here

    switch (readMode) {
    case DEFAULT:
      ois.defaultReadObject();
      break;
    case FIELD:
      final GetField getField = ois.readFields();
      final Object marker = new Object();
      if (getField.defaulted("object1")) {
        throw new IOException(MUST_NOT_BE_DEFAULTED);
      }
      object1 = getField.get("object1", marker);
      if (object1 == marker) {// NOPMD
        throw new IOException(MUST_NOT_BE_DEFAULT_VALUE);
      }
      if (getField.defaulted("object2")) {
        throw new IOException(MUST_NOT_BE_DEFAULTED);
      }
      object2 = getField.get("object2", marker);
      if (object2 == marker) {// NOPMD
        throw new IOException(MUST_NOT_BE_DEFAULT_VALUE);
      }
      if (getField.defaulted("value")) {
        throw new IOException(MUST_NOT_BE_DEFAULTED);
      }
      value = getField.get("value", 0);

      if (getField.defaulted("notPrimitiveValue")) {
        throw new IOException(MUST_NOT_BE_DEFAULTED);
      }
      notPrimitiveValue = (Integer) getField.get("notPrimitiveValue",
          marker);
      if (notPrimitiveValue == marker) {// NOPMD
        throw new IOException(MUST_NOT_BE_DEFAULT_VALUE);
      }
View Full Code Here

   private void readObject(ObjectInputStream in)
      throws IOException, ClassNotFoundException
   {
      // Read in the serialPersistentFields
      GetField fields = in.readFields();
      URI rootURI = (URI) fields.get("rootURI", null);
      this.parent = (VirtualFileHandler) fields.get("parent", null);
      this.name = (String) fields.get("name", null);
      VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURI);
      this.context = factory.getVFS(rootURI);
      this.references = 0;
      this.vfsUrl = (URL)fields.get("vfsUrl", null);
   }
View Full Code Here

    */
   private void readObject(ObjectInputStream in)
      throws IOException, ClassNotFoundException
   {
      // Read in the serialPersistentFields
      GetField fields = in.readFields();
      byte[] zisBytes =  (byte[]) fields.get("zisBytes", null);
      this.jarURL = (URL) fields.get("jarURL", null);
      this.entryURL = (URL) fields.get("entryURL", null);
      this.lastModified = fields.get("lastModified", (long)-1);
      this.size = fields.get("size", (long)-1);
      // Initialize the jar entry map
      inited = new AtomicBoolean(false);
      ByteArrayInputStream bais = new ByteArrayInputStream(zisBytes);
      zis = new ZipInputStream(bais);
      this.init();
View Full Code Here

   }
   private void readObject(ObjectInputStream in)
      throws IOException, ClassNotFoundException
   {
      // Read in the serialPersistentFields
      GetField fields = in.readFields();
      URI rootURI = (URI) fields.get("rootURI", null);
      this.parent = (VirtualFileHandler) fields.get("parent", null);
      this.name = (String) fields.get("name", null);
      VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURI);
      this.context = factory.getVFS(rootURI);
      this.references = new AtomicInteger(0);
      this.vfsUrl = (URL)fields.get("vfsUrl", null);
      // Restore the log
      log = Logger.getLogger(getClass());
   }
View Full Code Here

   }
   private void readObject(ObjectInputStream in)
      throws IOException, ClassNotFoundException
   {
      // Read in the serialPersistentFields
      GetField fields = in.readFields();
      URI rootURI = (URI) fields.get("rootURI", null);
      this.parent = (VirtualFileHandler) fields.get("parent", null);
      this.name = (String) fields.get("name", null);
      VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURI);
      this.context = factory.getVFS(rootURI);
      this.references = new AtomicInteger(0);
      this.vfsUrl = (URL)fields.get("vfsUrl", null);
   }
View Full Code Here

   }
   private void readObject(ObjectInputStream in)
      throws IOException, ClassNotFoundException
   {
      // Read in the serialPersistentFields
      GetField fields = in.readFields();
      URI rootURI = (URI) fields.get("rootURI", null);
      this.parent = (VirtualFileHandler) fields.get("parent", null);
      this.name = (String) fields.get("name", null);
      VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURI);
      this.context = factory.getVFS(rootURI);
      this.references = new AtomicInteger(0);
      this.vfsUrl = (URL)fields.get("vfsUrl", null);
      // Restore the log
      log = Logger.getLogger(getClass());
   }
View Full Code Here

   }
   private void readObject(ObjectInputStream in)
      throws IOException, ClassNotFoundException
   {
      // Read in the serialPersistentFields
      GetField fields = in.readFields();
      URI rootURI = (URI) fields.get("rootURI", null);
      this.parent = (VirtualFileHandler) fields.get("parent", null);
      this.name = (String) fields.get("name", null);
      VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURI);
      this.context = factory.getVFS(rootURI);
      this.references = new AtomicInteger(0);
      // Restore the log
      log = Logger.getLogger(getClass());
View Full Code Here

TOP

Related Classes of java.io.ObjectInputStream.GetField

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.