Package de.paull.lib.files
Class Reader
java.lang.Object
de.paull.lib.files.Reader
Reader class to read Files
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReads a from the Writer compressed Filestatic StringRead contents of a String to a Stringstatic InputStreamReads a file out of the resources folder to InputStreamstatic InputStreamreadToStream(String path) Reads a file as InputStream
-
Constructor Details
-
Reader
public Reader()
-
-
Method Details
-
readRaw
Read contents of a String to a String- Parameters:
f- the file which should be read- Returns:
- returns the String
- Throws:
IOException
-
readToStream
Reads a file as InputStream- Parameters:
path- path of file- Returns:
- InputStream
- Throws:
IOException- on error
-
readResourceToInputStream
Reads a file out of the resources folder to InputStream- Parameters:
path- path of file- Returns:
- InputStream
- Throws:
IOException- on error
-
readCompressedFile
Reads a from the Writer compressed File- Parameters:
f- path of file- Returns:
- raw uncompressed String
- Throws:
IOException- on error
-