Examples of RDataWriter


Examples of org.renjin.primitives.io.serialization.RDataWriter

    indexOut.close();
  }

  private byte[] serializeSymbol(NamedValue namedValue) throws IOException {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    RDataWriter writer = new RDataWriter(context, baos);
    writer.serialize(namedValue.getValue());
    baos.close();
    return baos.toByteArray();
  }
View Full Code Here

Examples of org.renjin.primitives.io.serialization.RDataWriter

      }
      indexMap.put(logicalDatasetName, node.getName());
     
      File targetFile = new File(dataObjectDirectory, node.getName());
      FileOutputStream out = new FileOutputStream(targetFile);
      RDataWriter writer = new RDataWriter(session.getTopLevelContext(), out);
      writer.save(node.getValue());
      out.close();   
    }
  }
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.