Class ObjectWriterFactory


  • public class ObjectWriterFactory
    extends java.lang.Object
    Factory for ObjectWriter instances.
    • Constructor Detail

      • ObjectWriterFactory

        public ObjectWriterFactory()
    • Method Detail

      • newAutoFlushingObjectWriter

        public AutoFlushingObjectWriter newAutoFlushingObjectWriter​(java.io.OutputStream outputStream)
                                                             throws java.io.IOException
        Creates a new AutoFlushingObjectWriter instance.
        Parameters:
        outputStream - the underlying OutputStream to write to
        Returns:
        a new AutoFlushingObjectWriter instance
        Throws:
        java.io.IOException - if an I/O error occurs while writing stream header