Class Writers.LocalDateAsLong

java.lang.Object
com.cedarsoftware.io.Writers.PrimitiveTypeWriter
com.cedarsoftware.io.Writers.LocalDateAsLong
All Implemented Interfaces:
JsonClassWriter
Enclosing class:
Writers

public static class Writers.LocalDateAsLong extends Writers.PrimitiveTypeWriter
  • Constructor Details

    • LocalDateAsLong

      public LocalDateAsLong(ZoneId zoneId)
    • LocalDateAsLong

      public LocalDateAsLong()
  • Method Details

    • writePrimitiveForm

      public void writePrimitiveForm(Object o, Writer output, WriterContext writerContext) throws IOException
      Description copied from interface: JsonClassWriter
      Write the object in its primitive JSON form (without surrounding braces). Only called if JsonClassWriter.hasPrimitiveForm(WriterContext) returns true.
      Parameters:
      o - Object to be written
      output - Writer destination where the JSON is written
      writerContext - WriterContext providing access to WriteOptions and writing tools
      Throws:
      IOException - if an I/O error occurs during writing