Examples of TDataOutputStream


Examples of de.desy.tine.io.TDataOutputStream

   * @throws IOException
   */
  public static byte[] structToBytes(TStructIfc struct) throws IOException
  {
    ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();
    TDataOutputStream ostream = new TDataOutputStream(bytesOut);
    struct.writeData(ostream);
    ostream.close();
    return bytesOut.toByteArray();
  }
View Full Code Here

Examples of de.desy.tine.io.TDataOutputStream

   * @return Returns a byte array.
   */
  public byte[] toByteArray()
  {
    ByteArrayOutputStream bfout = new ByteArrayOutputStream();
    TDataOutputStream dsout = new TDataOutputStream(bfout);
    try
    {
      writeData(dsout);
      dsout.close();
    }
    catch (Exception e)
    {
      e.printStackTrace();
      MsgLog.log("TServerStatistics.toByteArray",e.toString(),TErrorList.code_failure,e,0);       
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.