Liferay 6.0.5

com.liferay.portal.kernel.util
Class StreamUtil

java.lang.Object
  extended by com.liferay.portal.kernel.util.StreamUtil

public class StreamUtil
extends Object


Field Summary
static int BUFFER_SIZE
           
static boolean USE_NIO
           
 
Constructor Summary
StreamUtil()
           
 
Method Summary
static void cleanUp(Channel channel)
           
static void cleanUp(Channel inputChannel, Channel outputChannel)
           
static void cleanUp(InputStream inputStream)
           
static void cleanUp(InputStream inputStream, OutputStream outputStream)
           
static void cleanUp(OutputStream outputStream)
           
static void transfer(InputStream inputStream, OutputStream outputStream)
           
static void transfer(InputStream inputStream, OutputStream outputStream, boolean cleanUp)
           
static void transfer(InputStream inputStream, OutputStream outputStream, int bufferSize)
           
static void transfer(InputStream inputStream, OutputStream outputStream, int bufferSize, boolean cleanUp)
           
static void transfer(ReadableByteChannel readableByteChannel, WritableByteChannel writableByteChannel)
           
static void transfer(ReadableByteChannel readableByteChannel, WritableByteChannel writableByteChannel, boolean cleanUp)
           
static void transfer(ReadableByteChannel readableByteChannel, WritableByteChannel writableByteChannel, int bufferSize)
           
static void transfer(ReadableByteChannel readableByteChannel, WritableByteChannel writableByteChannel, int bufferSize, boolean cleanUp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFER_SIZE

public static final int BUFFER_SIZE

USE_NIO

public static final boolean USE_NIO
Constructor Detail

StreamUtil

public StreamUtil()
Method Detail

cleanUp

public static void cleanUp(Channel channel)

cleanUp

public static void cleanUp(Channel inputChannel,
                           Channel outputChannel)

cleanUp

public static void cleanUp(InputStream inputStream)

cleanUp

public static void cleanUp(InputStream inputStream,
                           OutputStream outputStream)

cleanUp

public static void cleanUp(OutputStream outputStream)

transfer

public static void transfer(InputStream inputStream,
                            OutputStream outputStream)
                     throws IOException
Throws:
IOException

transfer

public static void transfer(InputStream inputStream,
                            OutputStream outputStream,
                            boolean cleanUp)
                     throws IOException
Throws:
IOException

transfer

public static void transfer(InputStream inputStream,
                            OutputStream outputStream,
                            int bufferSize)
                     throws IOException
Throws:
IOException

transfer

public static void transfer(InputStream inputStream,
                            OutputStream outputStream,
                            int bufferSize,
                            boolean cleanUp)
                     throws IOException
Throws:
IOException

transfer

public static void transfer(ReadableByteChannel readableByteChannel,
                            WritableByteChannel writableByteChannel)
                     throws IOException
Throws:
IOException

transfer

public static void transfer(ReadableByteChannel readableByteChannel,
                            WritableByteChannel writableByteChannel,
                            boolean cleanUp)
                     throws IOException
Throws:
IOException

transfer

public static void transfer(ReadableByteChannel readableByteChannel,
                            WritableByteChannel writableByteChannel,
                            int bufferSize)
                     throws IOException
Throws:
IOException

transfer

public static void transfer(ReadableByteChannel readableByteChannel,
                            WritableByteChannel writableByteChannel,
                            int bufferSize,
                            boolean cleanUp)
                     throws IOException
Throws:
IOException

Liferay 6.0.5