Examples of ObjectInput


Examples of java.io.ObjectInput

   }

   @Override
   public Object objectFromByteBuffer(byte[] bytes, int offset, int len) throws IOException, ClassNotFoundException {
      ByteArrayInputStream is = new ByteArrayInputStream(bytes, offset, len);
      ObjectInput in = startObjectInput(is, false);
      Object o = null;
      try {
         o = defaultMarshaller.objectFromObjectStream(in);
      } finally {
         finishObjectInput(in);
View Full Code Here

Examples of java.io.ObjectInput

      defaultMarshaller.objectToObjectStream(obj, out);
   }

   @Override  
   public ObjectInput startObjectInput(InputStream is, boolean isReentrant) throws IOException {
      ObjectInput in = defaultMarshaller.startObjectInput(is, isReentrant);
      int versionId;
      try {
         versionId = in.readShort();
         if (trace) log.trace("Read version {0}", versionId);
      }
      catch (Exception e) {
         finishObjectInput(in);
         log.error("Unable to read version id from first two bytes of stream, barfing.");
View Full Code Here

Examples of java.io.ObjectInput

   @Override
   public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException,
           ClassNotFoundException {
      ByteArrayInputStream is = new ByteArrayInputStream(buf, offset, length);
      ObjectInput unmarshaller = startObjectInput(is, false);
      Object o = null;
      try {
         o = objectFromObjectStream(unmarshaller);
      } finally {
         finishObjectInput(unmarshaller);
View Full Code Here

Examples of nexj.core.integration.io.ObjectInput

      Iterator itr = null;

      if (table != null && table.getFormat() != null)
      {
         tobj = ((MessageParser)table.getFormat().getParser().getInstance(context))
            .parse((body instanceof Input) ? (Input)body : new ObjectInput(body), table);
         itr = channel.getBindingIterator(table.getMessage(tobj.getClassName()));
      }
      else
      {
         if (body instanceof Input)
View Full Code Here

Examples of org.metaworks.inputter.ObjectInput

        classType = Class.forName(className);
       
        try{
          drrcInput = (InputterAdapter)ObjectType.getDefaultInputter(Class.forName(className));
        }catch(Exception e){
          drrcInput = new ObjectInput(classType);
        }
       
        RoleResolutionContext rrc = (RoleResolutionContext)Class.forName(className).newInstance();
        String roleResolutionContextName = rrc.getName();
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.