Package de.ruedigermoeller.serialization

Examples of de.ruedigermoeller.serialization.FSTObjectOutput


            return EMPTY_BYTES;

        try {
            @Cleanup
            ByteArrayOutputStream os = new ByteArrayOutputStream();
            FSTObjectOutput oos = conf.getObjectOutput(os);
            oos.writeObject(graph);
            oos.flush();

            return os.toByteArray();
        } catch (Exception e) {
            log.warn("Fail to serializer graph. graph=" + graph, e);
            return EMPTY_BYTES;
View Full Code Here


  {
    Exception exception = null;

    try
    {
      FSTObjectOutput out = fastSerializationConfig.getObjectOutput();

      if (listener != null)
      {
        out.setListener(new ListenerAdapter(listener));
        listener.begin(object);
      }
      out.writeObject(object);
      out.setListener(null);

      return out.getCopyOfWrittenBuffer();
    }
    catch (Exception e)
    {
      exception = e;
      throw new FastWicketSerialException(String.format(
View Full Code Here

TOP

Related Classes of de.ruedigermoeller.serialization.FSTObjectOutput

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.