Class SmallFile

java.lang.Object
adalid.util.io.SmallFile

public class SmallFile extends Object
Author:
Jorge Campins
  • Field Details

    • WINDOWS_CHARSET

      public static final Charset WINDOWS_CHARSET
      https://www.i18nqa.com/debug/table-iso8859-1-vs-windows-1252.html ISO-8859-1 (also called Latin-1) is identical to Windows-1252 (also called CP1252) except for the code points 128-159 (0x80-0x9F). ISO-8859-1 assigns several control codes in this range. Windows-1252 has several characters, punctuation, arithmetic and business symbols assigned to these code points. Mislabeling text encoded in Windows-1252 as ISO-8859-1 and then converting from ISO-8859-1 to Unicode or other encodings causes the characters in the range 128-159 to be lost. They are converted as if they were control codes and typically display as white space, a specialized question mark, or a square showing the 4 hex digits of the code point. Using an ISO-8859-1 font that does not have the correct glyphs for the Windows-1252 characters will cause the characters to be displayed incorrectly.
    • DEFAULT_CHARSETS

      public static final Charset[] DEFAULT_CHARSETS
  • Constructor Details

    • SmallFile

      public SmallFile(String path)
    • SmallFile

      public SmallFile(String path, Charset[] charsets)
  • Method Details

    • read

      public List<String> read()
    • getName

      public String getName()
    • getExtension

      public String getExtension()
    • getPath

      public Path getPath()
    • getCharsets

      public Charset[] getCharsets()
    • getCharset

      public Charset getCharset()
    • getLines

      public List<String> getLines()
    • isEmpty

      public boolean isEmpty()
    • isNotEmpty

      public boolean isNotEmpty()