Enum StreamingCpfWriter.HeaderLineWriter

    • Method Detail

      • values

        public static StreamingCpfWriter.HeaderLineWriter[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (StreamingCpfWriter.HeaderLineWriter c : StreamingCpfWriter.HeaderLineWriter.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static StreamingCpfWriter.HeaderLineWriter valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • write

        public abstract void write​(CPFHeader cpfHeader,
                                   Appendable cpfWriter,
                                   TimeScale timescale)
                            throws IOException
        Write a line.
        Parameters:
        cpfHeader - container for header data
        cpfWriter - writer
        timescale - time scale for dates
        Throws:
        IOException - if any buffer writing operations fail or if the underlying format doesn't support a configuration in the file
      • getIdentifier

        public String getIdentifier()
        Get the regular expression for identifying line.
        Returns:
        the regular expression for identifying line