Package org.lobobrowser.util.io
Class IORoutines
java.lang.Object
org.lobobrowser.util.io.IORoutines
- Author:
- J. H. S.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
equalContent
(File file, byte[] content) static byte[]
static byte[]
load
(InputStream in) static byte[]
load
(InputStream in, int initialBufferSize) static String
loadAsText
(InputStream in, String encoding) static String
loadAsText
(InputStream in, String encoding, int bufferSize) static byte[]
loadExact
(InputStream in, int length) static List
loadStrings
(File file) static String
readLine
(InputStream in) Reads line without buffering.static void
static void
saveStrings
(File file, Collection list) static void
-
Field Details
-
LINE_BREAK_BYTES
public static final byte[] LINE_BREAK_BYTES
-
-
Constructor Details
-
IORoutines
public IORoutines()
-
-
Method Details
-
loadAsText
- Throws:
IOException
-
loadAsText
- Throws:
IOException
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
loadExact
- Throws:
IOException
-
equalContent
- Throws:
IOException
-
save
- Throws:
IOException
-
readLine
Reads line without buffering.- Throws:
IOException
-
touch
-
saveStrings
- Throws:
IOException
-
loadStrings
- Throws:
IOException
-