Examples of readObject()


Examples of javolution.xml.XmlInputStream.readObject()

        XmlInputStream reader = new XmlInputStream();
        Object obj = null;
        try
        {
            reader.setInputStream( in );
            obj = reader.readObject();
        }
        finally
        {
            reader.close();
        }
View Full Code Here

Examples of jcifs.spnego.asn1.DERInputStream.readObject()

    }

    protected void parse(byte[] token) throws IOException {
        ByteArrayInputStream tokenStream = new ByteArrayInputStream(token);
        DERInputStream der = new DERInputStream(tokenStream);
        ASN1TaggedObject tagged = (ASN1TaggedObject) der.readObject();
        ASN1Sequence sequence = ASN1Sequence.getInstance(tagged, true);
        Enumeration fields = sequence.getObjects();
        while (fields.hasMoreElements()) {
            tagged = (ASN1TaggedObject) fields.nextElement();
            switch (tagged.getTagNo()) {
View Full Code Here

Examples of mage.util.CopierObjectInputStream.readObject()

    try{
      InputStream file = new FileInputStream("saved/" + gameId.toString() + ".game");
      InputStream buffer = new BufferedInputStream(file);
      ObjectInput input = new CopierObjectInputStream(Main.classLoader, new GZIPInputStream(buffer));
      try {
        Game game = (Game)input.readObject();
        GameStates states = (GameStates)input.readObject();
        game.loadGameStates(states);
        return game;
      }
      finally {
View Full Code Here

Examples of marauroa.common.net.InputSerializer.readObject()

    InputSerializer ser = new InputSerializer(szlib);
    ser.setProtocolVersion(protocolVersion);

    try {
      typePerception = ser.readByte();
      zoneid = (IRPZone.ID) ser.readObject(new IRPZone.ID(""));
      addedRPObjects = new LinkedList<RPObject>();
      deletedRPObjects = new LinkedList<RPObject>();
      modifiedAddedAttribsRPObjects = new LinkedList<RPObject>();
      modifiedDeletedAttribsRPObjects = new LinkedList<RPObject>();
View Full Code Here

Examples of marauroa.common.net.message.Message.readObject()

          in.skip(offset);
        }
        InputSerializer s = new InputSerializer(in);
        s.setProtocolVersion(networkProtocolVersion);

        tmp.readObject(s);
        tmp.setSocketChannel(channel);
        s.close();
        return tmp;
      } catch (Exception e) {
        logger.error("error in getMessage", e);
View Full Code Here

Examples of mx4j.loading.ClassLoaderObjectInputStream.readObject()

            InputStream bis = new BufferedInputStream(is);

            // Deserialize using the MLet classloader
            ObjectInputStream ois = new ClassLoaderObjectInputStream(bis, this);
            mbean = ois.readObject();
         }
         else
         {
            // Instantiate using the MLet classloader
            String clsName = tag.getCode();
View Full Code Here

Examples of net.jini.io.MarshalInputStream.readObject()

      MarshalInputStream s =
    new MarshalInputStream(in,
               ActLogHandler.class.getClassLoader(),
               false, null, Collections.EMPTY_LIST);
      s.useCodebaseAnnotations();
      state = (Activation) s.readObject();
  }

  public void writeUpdate(OutputStream out, Object value)
      throws Exception
  {
View Full Code Here

Examples of net.sf.robocode.host.serialization.RobocodeObjectInputStream.readObject()

        byteStreamReader.reset();

        RobocodeObjectInputStream objectStreamReader = null;
        try {
          objectStreamReader = new RobocodeObjectInputStream(byteStreamReader, (ClassLoader) robotClassLoader);
          Serializable message = (Serializable) objectStreamReader.readObject();
          MessageEvent event = new MessageEvent(teamMessage.sender, message);
          eventManager.add(event);
        } finally {
          if (objectStreamReader != null) {
            objectStreamReader.close();
View Full Code Here

Examples of net.sourceforge.htmlunit.corejs.javascript.serialize.ScriptableInputStream.readObject()

    if ( args.length < 1 ) { throw Context.reportRuntimeError( "Expected a filename to read the serialization from" ); }
    String filename = Context.toString( args[ 0 ] );
    FileInputStream fis = new FileInputStream( filename );
    Scriptable scope = ScriptableObject.getTopLevelScope( thisObj );
    ObjectInputStream in = new ScriptableInputStream( fis, scope );
    Object deserialized = in.readObject();
    in.close();
    return Context.toObject( deserialized, scope );
  }

  /**
 
View Full Code Here

Examples of one.nio.serial.DeserializeStream.readObject()

        int count = 0;
        DeserializeStream ds = new DeserializeStream(mmap.getAddr() + CUSTOM_DATA_OFFSET, (int) metadataSize);
        while (ds.available() > 0) {
            try {
                Repository.provideSerializer((Serializer) ds.readObject());
            } catch (IOException e) {
                throw new IllegalStateException(e);
            } catch (ClassNotFoundException e) {
                throw new IllegalStateException(e);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.