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();
      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

     *
     * @param stream
     * @throws Exception
     */
    private void readObject(ObjectInputStream stream) throws Exception {
        GetField fields = stream.readFields();

        try {
            // backwards compatible deserialization, convert items to header
            Object items = fields.get("_items", null);
            @SuppressWarnings("unchecked")
            List<SelectItem> itemsList = (List<SelectItem>) items;
            SimpleDataSetHeader header = new SimpleDataSetHeader(itemsList);
            Field field = getClass().getDeclaredField("_header");
            field.setAccessible(true);
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();
      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 = 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);
   }
View Full Code Here

     * @param ois
     * @throws IOException
     * @throws ClassNotFoundException
     */
    private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
        GetField getField = ois.readFields();
        sourceURI = (String) getField.get("sourceURI", null);
        startLine = (Integer) getField.get("startLine", 0);
        endLine = (Integer) getField.get("endLine", 0);
        extensibilityElements = (HashMap<QName, Object>) getField.get("extensibilityElements", null);
    }
View Full Code Here

     * @param ois
     * @throws IOException
     * @throws ClassNotFoundException
     */
    private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
      GetField getField = ois.readFields();
      sourceURI = (String) getField.get("sourceURI", null);
      startLine = (Integer) getField.get("startLine", 0);
      endLine = (Integer) getField.get("endLine", 0);
      extensibilityElements = (HashMap<QName, Object>) getField.get("extensibilityElements", 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);
   }
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.