コード例 #1
0
 @Override
 public void write(DataOutput out) throws IOException {
   byte[] data = _is.writeFields();
   out.writeUTF(Plugins.getLoadedLibraries());
   out.writeUTF(_is.getClassName());
   // System.out.printf("Java write data length: %d\n", data.length);
   out.writeInt(data.length);
   out.write(data);
 }
コード例 #2
0
 @Override
 public void readFields(DataInput in) throws IOException {
   String libDeps = in.readUTF();
   Plugins.loadAllLibraries(libDeps);
   String className = in.readUTF();
   _is = pp.InputSplit.create(className);
   int length = in.readInt();
   byte[] data = new byte[length];
   // System.out.printf("Java read data length: %d\n", length);
   in.readFully(data);
   _is.readFields(data);
 }
コード例 #3
0
 public long getStart() {
   return _is.getStart();
 }
コード例 #4
0
 @Override
 public String[] getLocations() throws IOException {
   return _is.getLocations().split(";");
 }
コード例 #5
0
 @Override
 public long getLength() throws IOException {
   return _is.getLength();
 }