Class JsonLineWriter

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class JsonLineWriter
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonLineWriter​(java.io.OutputStream outputStream)  
      JsonLineWriter​(java.io.OutputStream outputStream, boolean isEmpty)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEntry​(JsonLineModel line)  
      void addEntry​(java.lang.Object line)  
      void close()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonLineWriter

        public JsonLineWriter​(java.io.OutputStream outputStream)
      • JsonLineWriter

        public JsonLineWriter​(java.io.OutputStream outputStream,
                              boolean isEmpty)
    • Method Detail

      • addEntry

        public void addEntry​(JsonLineModel line)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addEntry

        public void addEntry​(java.lang.Object line)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException