electric.util.io
Class Streams
java.lang.Object
electric.util.io.Streams
- public final class Streams
- extends java.lang.Object
Streams defines a set of static methods for manipulating streams.
- Author:
- webMethods
Method Summary |
static void |
copy(java.io.InputStream input,
java.io.OutputStream output,
byte[] delimiter,
long logMask)
|
static void |
copy(java.io.InputStream input,
java.io.OutputStream output,
int length,
int buffersize)
|
static void |
copy(java.io.InputStream input,
java.io.OutputStream output,
int length,
int buffersize,
long logMask)
|
static java.io.Reader |
getReader(java.io.File file)
|
static java.io.Reader |
getReader(java.io.InputStream input)
|
static java.io.Writer |
getWriter(java.io.File file,
java.lang.String encoding)
|
static java.io.Writer |
getWriter(java.io.OutputStream output,
java.lang.String encoding)
|
static byte[] |
readFully(java.io.File file)
|
static byte[] |
readFully(java.io.InputStream input)
|
static void |
readFully(java.io.InputStream input,
byte[] buffer,
int offset,
int length)
|
static void |
readFully(java.io.InputStream input,
byte[] buffer,
int offset,
int length,
long logMask)
|
static byte[] |
readFully(java.io.InputStream input,
int length)
|
static byte[] |
readFully(java.io.InputStream input,
int length,
long logMask)
|
static byte[] |
readFully(java.io.InputStream input,
long logMask)
|
static java.lang.String |
readLine(java.io.InputStream input)
|
static java.lang.String |
readLine(java.io.InputStream input,
java.lang.String encoding)
|
static byte[] |
readUpTo(java.io.InputStream input,
byte[] delimeter)
|
static int |
readUpTo(java.io.InputStream input,
byte[] buffer,
int offset,
int length)
|
static byte[] |
readUpTo(java.io.InputStream input,
int length)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Streams
public Streams()
getReader
public static java.io.Reader getReader(java.io.File file)
throws java.io.IOException
- Parameters:
file
-
- Throws:
java.io.IOException
getReader
public static java.io.Reader getReader(java.io.InputStream input)
throws java.io.IOException
- Parameters:
input
-
- Throws:
java.io.IOException
getWriter
public static java.io.Writer getWriter(java.io.File file,
java.lang.String encoding)
throws java.io.IOException,
java.io.UnsupportedEncodingException
- Parameters:
file
- encoding
-
- Throws:
java.io.IOException
java.io.UnsupportedEncodingException
getWriter
public static java.io.Writer getWriter(java.io.OutputStream output,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
- Parameters:
output
- encoding
-
- Throws:
java.io.UnsupportedEncodingException
readFully
public static byte[] readFully(java.io.File file)
throws java.io.IOException
- Parameters:
file
-
- Throws:
java.io.IOException
readFully
public static void readFully(java.io.InputStream input,
byte[] buffer,
int offset,
int length)
throws java.io.IOException
- Parameters:
input
- buffer
- offset
- length
-
- Throws:
java.io.IOException
readFully
public static void readFully(java.io.InputStream input,
byte[] buffer,
int offset,
int length,
long logMask)
throws java.io.IOException
- Parameters:
input
- buffer
- offset
- length
- logMask
-
- Throws:
java.io.IOException
readFully
public static byte[] readFully(java.io.InputStream input,
int length)
throws java.io.IOException
- Parameters:
input
- length
-
- Throws:
java.io.IOException
readFully
public static byte[] readFully(java.io.InputStream input,
int length,
long logMask)
throws java.io.IOException
- Parameters:
input
- length
- logMask
-
- Throws:
java.io.IOException
readFully
public static byte[] readFully(java.io.InputStream input)
throws java.io.IOException
- Parameters:
input
-
- Throws:
java.io.IOException
readFully
public static byte[] readFully(java.io.InputStream input,
long logMask)
throws java.io.IOException
- Parameters:
input
- logMask
-
- Throws:
java.io.IOException
readUpTo
public static int readUpTo(java.io.InputStream input,
byte[] buffer,
int offset,
int length)
throws java.io.IOException
- Parameters:
input
- buffer
- offset
- length
-
- Throws:
java.io.IOException
readUpTo
public static byte[] readUpTo(java.io.InputStream input,
int length)
throws java.io.IOException
- Parameters:
input
- length
-
- Throws:
java.io.IOException
readUpTo
public static byte[] readUpTo(java.io.InputStream input,
byte[] delimeter)
throws java.io.IOException
- Parameters:
input
- delimeter
-
- Throws:
java.io.IOException
readLine
public static java.lang.String readLine(java.io.InputStream input)
throws java.io.IOException
- Parameters:
input
-
- Throws:
java.io.IOException
readLine
public static java.lang.String readLine(java.io.InputStream input,
java.lang.String encoding)
throws java.io.IOException
- Parameters:
input
- encoding
-
- Throws:
java.io.IOException
copy
public static void copy(java.io.InputStream input,
java.io.OutputStream output,
int length,
int buffersize,
long logMask)
throws java.io.IOException
- Parameters:
input
- output
- length
- buffersize
- logMask
-
- Throws:
java.io.IOException
copy
public static void copy(java.io.InputStream input,
java.io.OutputStream output,
int length,
int buffersize)
throws java.io.IOException
- Parameters:
input
- output
- length
- buffersize
-
- Throws:
java.io.IOException
copy
public static void copy(java.io.InputStream input,
java.io.OutputStream output,
byte[] delimiter,
long logMask)
throws java.io.IOException
- Parameters:
input
- output
- delimiter
- logMask
-
- Throws:
java.io.IOException
copyright© 2001-2004 by webMethods All Rights Reserved.