|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.util.OwStreamUtil
public class OwStreamUtil
Utility class for Streams.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Field Summary | |
|---|---|
static int |
BUFFER_SIZE
buffer for read and write |
static int |
MIN_READ
min size if read is blocked |
| Constructor Summary | |
|---|---|
OwStreamUtil()
|
|
| Method Summary | |
|---|---|
static void |
upload(InputStream in_p,
OutputStream out_p,
boolean fClose_p)
upload the given OutputStream to the given InputStream The InputStream (in_p) and OutputStream (out_p) are closed |
static void |
upload(InputStream in_p,
OutputStream out_p,
boolean fClose_p,
int bufSize_p)
Helper method which redirect the input stream to the output stream, using a buffer with given size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BUFFER_SIZE
public static final int MIN_READ
| Constructor Detail |
|---|
public OwStreamUtil()
| Method Detail |
|---|
public static void upload(InputStream in_p,
OutputStream out_p,
boolean fClose_p)
throws Exception
in_p - InputStreamout_p - OutputStreamfClose_p - Close the stream after finishing
Exception
public static void upload(InputStream in_p,
OutputStream out_p,
boolean fClose_p,
int bufSize_p)
throws IOException
in_p - InputStream to redirectout_p - OutputStream for redirectionfClose_p - flag for closing streams at the endbufSize_p - int buffer size to be used for redirection
IOException - if any problems during redirection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||