Package adalid.util.io
Class FileWrapper
java.lang.Object
adalid.util.io.FileWrapper
- Author:
- Jorge Campins
-
Constructor Details
-
FileWrapper
-
-
Method Details
-
read
-
getFile
- Returns:
- the file
-
getBytes
public long getBytes()- Returns:
- the length of the file in bytes
-
getBytesSize
- Returns:
- the size corresponding to the number of bytes
-
getPath
- Returns:
- the path
-
getType
- Returns:
- the type
-
getCharset
- Returns:
- the charset
-
getLinesList
- Returns:
- the lines
-
getLines
public int getLines()- Returns:
- the length of the file in lines
-
getLinesSize
- Returns:
- the size corresponding to the number of lines
-
getReadingWarnings
public int getReadingWarnings()- Returns:
- the reading warnings count
-
getReadingErrors
public int getReadingErrors()- Returns:
- the reading errors count
-
isText
public boolean isText()- Returns:
- true if the file is a text file; false otherwise
-
isEmpty
public boolean isEmpty()- Returns:
- true if the file is an empty file; false otherwise
-
isNotEmpty
public boolean isNotEmpty() -
getRelativePath
-