|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.taglibs.io.PipeHelper
A collection of helper methods for pipelining data between tags.
Field Summary | |
protected static int |
BUFFER_SIZE
Size of the buffer used when piping a stream |
protected static boolean |
CLOSE_READER
Temporarily disable the closing of Readers |
Constructor Summary | |
PipeHelper()
|
Method Summary | |
static java.io.Reader |
getReader(java.lang.Object input)
Uses the standard pipelining guidelines to produce a Reader instance for the given object. |
static java.io.Writer |
getWriter(java.lang.Object output)
Uses the standard pipelining guidelines to produce a Writer instance for the given object. |
static void |
pipe(java.io.InputStream input,
java.io.OutputStream output)
Pipes all the input to the given output. |
static void |
pipe(java.io.InputStream input,
java.io.OutputStream output,
byte[] buffer)
Pipes all the input to the given output. |
static void |
pipe(java.io.Reader reader,
java.io.Writer writer)
Pipes all the input from the given reader to the given writer. |
static void |
pipe(java.io.Reader reader,
java.io.Writer writer,
char[] buffer)
Pipes all the input from the given reader to the given writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int BUFFER_SIZE
protected static final boolean CLOSE_READER
Constructor Detail |
public PipeHelper()
Method Detail |
public static java.io.Reader getReader(java.lang.Object input)
public static java.io.Writer getWriter(java.lang.Object output)
public static void pipe(java.io.Reader reader, java.io.Writer writer) throws java.io.IOException
java.io.IOException
public static void pipe(java.io.Reader reader, java.io.Writer writer, char[] buffer) throws java.io.IOException
java.io.IOException
public static void pipe(java.io.InputStream input, java.io.OutputStream output) throws java.io.IOException
java.io.IOException
public static void pipe(java.io.InputStream input, java.io.OutputStream output, byte[] buffer) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |