Class UnicodeBOMWriter

    • Constructor Detail

      • UnicodeBOMWriter

        public UnicodeBOMWriter​(File file,
                                String charsetName)
                         throws IOException
        Creates an UnicodeBOMWriter that uses the named charset.
        Parameters:
        file - The output File to write to
        charsetName - The name of a supported Charset
        Throws:
        IOException - If the encoding is not supported or any problems writing to the stream
      • UnicodeBOMWriter

        public UnicodeBOMWriter​(String fileName,
                                String charsetName)
                         throws IOException
        Creates an UnicodeBOMWriter that uses the named charset.
        Parameters:
        fileName - The name of the output file
        charsetName - The name of a supported Charset
        Throws:
        IOException - If the encoding is not supported or any problems writing to the stream