Class TextFileFormat

  • All Implemented Interfaces:
    FileFormat<java.lang.String>, java.io.Serializable

    public class TextFileFormat
    extends java.lang.Object
    implements FileFormat<java.lang.String>
    FileFormat for text files where the whole file is one String data item. See FileFormat.text() for more details.
    Since:
    Jet 4.4
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FORMAT_TXT
      Format ID for text files.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.charset.Charset charset()
      Returns the configured character encoding.
      boolean equals​(java.lang.Object o)  
      java.lang.String format()
      Returns the name of the file format.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FORMAT_TXT

        public static final java.lang.String FORMAT_TXT
        Format ID for text files.
        See Also:
        Constant Field Values
    • Method Detail

      • charset

        @Nonnull
        public java.nio.charset.Charset charset()
        Returns the configured character encoding.
      • format

        @Nonnull
        public java.lang.String format()
        Description copied from interface: FileFormat
        Returns the name of the file format. The convention is to use the well-known filename suffix or, if there is none, a short-form name of the format.
        Specified by:
        format in interface FileFormat<java.lang.String>
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object