Package adalid.util.io
Class SmallFile
- java.lang.Object
-
- adalid.util.io.SmallFile
-
public class SmallFile extends java.lang.Object- Author:
- Jorge Campins
-
-
Field Summary
Fields Modifier and Type Field Description static java.nio.charset.Charset[]DEFAULT_CHARSETSstatic java.nio.charset.CharsetWINDOWS_CHARSEThttps://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).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.charset.CharsetgetCharset()java.nio.charset.Charset[]getCharsets()java.lang.StringgetExtension()java.util.List<java.lang.String>getLines()java.lang.StringgetName()java.nio.file.PathgetPath()booleanisEmpty()booleanisNotEmpty()java.util.List<java.lang.String>read()
-
-
-
Field Detail
-
WINDOWS_CHARSET
public static final java.nio.charset.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 java.nio.charset.Charset[] DEFAULT_CHARSETS
-
-
Method Detail
-
read
public java.util.List<java.lang.String> read()
-
getName
public java.lang.String getName()
-
getExtension
public java.lang.String getExtension()
-
getPath
public java.nio.file.Path getPath()
-
getCharsets
public java.nio.charset.Charset[] getCharsets()
-
getCharset
public java.nio.charset.Charset getCharset()
-
getLines
public java.util.List<java.lang.String> getLines()
-
isEmpty
public boolean isEmpty()
-
isNotEmpty
public boolean isNotEmpty()
-
-