Package org.goldenorb.io.input

Examples of org.goldenorb.io.input.RawSplit


      Serializer serializer = factory.getSerializer(splits.get(0).getClass());
      serializer.open(buffer);
      for (int i = 0; i < splits.size(); i++) {
        buffer.reset();
        serializer.serialize(splits.get(i));
        RawSplit rawSplit = new RawSplit();
        rawSplit.setClassName(splits.get(i).getClass().getName());
        rawSplit.setDataLength(splits.get(i).getLength());
        rawSplit.setBytes(buffer.getData(), 0, buffer.getLength());
        rawSplit.setLocations(splits.get(i).getLocations());
        rawSplits.add(rawSplit);
      }
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      throw new RuntimeException(e);
View Full Code Here

TOP

Related Classes of org.goldenorb.io.input.RawSplit

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.