|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object util.io.stream.StreamUtilities
public class StreamUtilities
Stream processor class for working with streams This class does all the IOException handling for working with streams, so you can concentrate on your algorithm instead.
Nested Class Summary | |
---|---|
(package private) static interface |
StreamUtilities.IInputStreamMethod
|
(package private) static interface |
StreamUtilities.IOutputStreamMethod
|
Constructor Summary | |
---|---|
StreamUtilities()
|
Method Summary | |
---|---|
static void |
bufferedReader(java.io.File file,
BufferedReaderProcessor processor)
|
static void |
bufferedReader(java.lang.String fileName,
BufferedReaderProcessor processor)
|
static void |
bufferedReaderIgnoringExceptions(java.io.File file,
BufferedReaderProcessor processor)
|
static void |
bufferedWriter(java.io.File file,
BufferedWriterProcessor processor)
|
static void |
bufferedWriterIgnoringExceptions(java.io.File file,
BufferedWriterProcessor processor)
|
static void |
inputStream(java.io.File file,
InputStreamProcessor processor)
Lets you work with a file based input stream. |
static void |
inputStream(java.io.InputStream inputStream,
InputStreamProcessor processor)
Lets you work with a generic input stream. |
static void |
inputStream(java.lang.String fileName,
InputStreamProcessor processor)
|
static void |
inputStream(java.net.URLConnection urlConnection,
InputStreamProcessor processor)
Lets you work with a URL based input stream. |
static void |
inputStream(java.net.URL url,
InputStreamProcessor processor)
Lets you work with a file based input stream. |
static void |
inputStreamIgnoringExceptions(java.io.File file,
InputStreamProcessor processor)
|
static void |
inputStreamIgnoringExceptions(java.lang.String fileName,
InputStreamProcessor processor)
Lets you work with a file name based input stream. |
static void |
objectInputStream(java.io.File file,
int bufferSize,
ObjectInputStreamProcessor processor)
Lets you work with a file based input stream. |
static void |
objectInputStream(java.io.File file,
ObjectInputStreamProcessor processor)
Lets you work with a file based input stream. |
static void |
objectInputStreamIgnoringExceptions(java.io.File file,
int bufferSize,
ObjectInputStreamProcessor processor)
|
static void |
objectInputStreamIgnoringExceptions(java.io.File file,
ObjectInputStreamProcessor processor)
|
static void |
objectOutputStream(java.io.File file,
ObjectOutputStreamProcessor processor)
|
static void |
objectOutputStreamIgnoringExceptions(java.io.File file,
ObjectOutputStreamProcessor processor)
|
static void |
outputStream(java.io.File file,
OutputStreamProcessor processor)
|
static void |
outputStream(java.lang.String fileName,
OutputStreamProcessor processor)
|
static void |
printStream(java.io.File file,
boolean autoFlush,
java.lang.String encoding,
PrintStreamProcessor processor)
|
static void |
printStream(java.io.File file,
PrintStreamProcessor processor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamUtilities()
Method Detail |
---|
public static void inputStream(java.io.File file, InputStreamProcessor processor) throws java.io.IOException
file
- processor
-
java.io.IOException
public static void inputStream(java.net.URLConnection urlConnection, InputStreamProcessor processor) throws java.io.IOException
urlConnection
- processor
-
java.io.IOException
public static void inputStream(java.io.InputStream inputStream, InputStreamProcessor processor) throws java.io.IOException
inputStream
- processor
-
java.io.IOException
public static void inputStreamIgnoringExceptions(java.lang.String fileName, InputStreamProcessor processor)
fileName
- processor
- public static void inputStreamIgnoringExceptions(java.io.File file, InputStreamProcessor processor)
public static void inputStream(java.lang.String fileName, InputStreamProcessor processor) throws java.io.IOException
java.io.IOException
public static void inputStream(java.net.URL url, InputStreamProcessor processor) throws java.io.IOException
url
- URL to openprocessor
-
java.io.IOException
public static void bufferedReader(java.io.File file, BufferedReaderProcessor processor) throws java.io.IOException
java.io.IOException
public static void bufferedReaderIgnoringExceptions(java.io.File file, BufferedReaderProcessor processor)
public static void bufferedReader(java.lang.String fileName, BufferedReaderProcessor processor) throws java.io.IOException
java.io.IOException
public static void outputStream(java.io.File file, OutputStreamProcessor processor) throws java.io.IOException
java.io.IOException
public static void outputStream(java.lang.String fileName, OutputStreamProcessor processor) throws java.io.IOException
java.io.IOException
public static void objectOutputStream(java.io.File file, ObjectOutputStreamProcessor processor) throws java.io.IOException
java.io.IOException
public static void objectOutputStreamIgnoringExceptions(java.io.File file, ObjectOutputStreamProcessor processor)
public static void bufferedWriter(java.io.File file, BufferedWriterProcessor processor) throws java.io.IOException
java.io.IOException
public static void bufferedWriterIgnoringExceptions(java.io.File file, BufferedWriterProcessor processor)
public static void objectInputStream(java.io.File file, ObjectInputStreamProcessor processor) throws java.io.IOException
file
- processor
-
java.io.IOException
public static void objectInputStream(java.io.File file, int bufferSize, ObjectInputStreamProcessor processor) throws java.io.IOException
file
- processor
-
java.io.IOException
public static void objectInputStreamIgnoringExceptions(java.io.File file, ObjectInputStreamProcessor processor)
public static void objectInputStreamIgnoringExceptions(java.io.File file, int bufferSize, ObjectInputStreamProcessor processor)
public static void printStream(java.io.File file, boolean autoFlush, java.lang.String encoding, PrintStreamProcessor processor) throws java.io.IOException
java.io.IOException
public static void printStream(java.io.File file, PrintStreamProcessor processor) throws java.io.IOException
java.io.IOException
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |