Class FmtLocalDateTime

  • All Implemented Interfaces:
    CellProcessor

    public class FmtLocalDateTime
    extends AbstractTemporalAccessorFormattingProcessor<java.time.LocalDateTime>
    Converts a LocalDateTime to a String. For constructors using DateTimeFormatter, refer to the following classes:
    • DateTimeFormatter - formats by pattern and style
    • DateTimeFormatter - ISO 8601 formats
    • DateTimeFormatterBuilder - complex formats created via method calls
    Since:
    2.4.0
    • Constructor Summary

      Constructors 
      Constructor Description
      FmtLocalDateTime()
      Constructs a new FmtLocalDateTime processor, which formats a LocalDateTime as a String.
      FmtLocalDateTime​(java.time.format.DateTimeFormatter formatter)
      Constructs a new FmtLocalDateTime processor, which formats a LocalDateTime as a String using the supplied formatter.
      FmtLocalDateTime​(java.time.format.DateTimeFormatter formatter, CellProcessor next)
      Constructs a new FmtLocalDateTime processor, which formats a LocalDateTime as a String using the supplied formatter, then calls the next processor in the chain.
      FmtLocalDateTime​(CellProcessor next)
      Constructs a new FmtLocalDateTime processor, which formats a LocalDateTime as a String, then calls the next processor in the chain.
    • Constructor Detail

      • FmtLocalDateTime

        public FmtLocalDateTime()
        Constructs a new FmtLocalDateTime processor, which formats a LocalDateTime as a String. The format is the same as obtained by LocalDateTime.toString()
      • FmtLocalDateTime

        public FmtLocalDateTime​(CellProcessor next)
        Constructs a new FmtLocalDateTime processor, which formats a LocalDateTime as a String, then calls the next processor in the chain.
        Parameters:
        next - next processor in the chain
        Throws:
        java.lang.NullPointerException - if next is null
      • FmtLocalDateTime

        public FmtLocalDateTime​(java.time.format.DateTimeFormatter formatter)
        Constructs a new FmtLocalDateTime processor, which formats a LocalDateTime as a String using the supplied formatter.
        Parameters:
        formatter - the formatter to use
        Throws:
        java.lang.NullPointerException - if formatter is null
      • FmtLocalDateTime

        public FmtLocalDateTime​(java.time.format.DateTimeFormatter formatter,
                                CellProcessor next)
        Constructs a new FmtLocalDateTime processor, which formats a LocalDateTime as a String using the supplied formatter, then calls the next processor in the chain.
        Parameters:
        formatter - the formatter to use
        next - the next processor in the chain
        Throws:
        java.lang.NullPointerException - if formatter or next is null