|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.server.net.servlet.ServletUtils
public class ServletUtils
| Field Summary | |
|---|---|
static int |
DEFAULT_BUFFER_SIZE
Default value is 2048. |
| Constructor Summary | |
|---|---|
ServletUtils()
|
|
| Method Summary | |
|---|---|
static void |
copy(InputStream input,
OutputStream output)
Copies information from the input stream to the output stream using a default buffer size of 2048 bytes. |
static void |
copy(InputStream input,
OutputStream output,
int bufferSize)
Copies information from the input stream to the output stream using the specified buffer size |
static void |
copyThenClose(InputStream input,
OutputStream output)
Copies information between specified streams and then closes both of the streams. |
static byte[] |
getBytes(InputStream input)
|
static List<String> |
getRemoteAddresses(javax.servlet.http.HttpServletRequest request)
Return all remote addresses that were involved in the passed request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_BUFFER_SIZE
| Constructor Detail |
|---|
public ServletUtils()
| Method Detail |
|---|
public static void copy(InputStream input,
OutputStream output)
throws IOException
input - inputoutput - output
IOException - on error
public static void copy(InputStream input,
OutputStream output,
int bufferSize)
throws IOException
input - inputbufferSize - buffer sizeoutput - output
IOException - on error
public static void copyThenClose(InputStream input,
OutputStream output)
throws IOException
output - outputinput - input
IOException - on error
public static byte[] getBytes(InputStream input)
throws IOException
input - input stream
IOException - on errorpublic static List<String> getRemoteAddresses(javax.servlet.http.HttpServletRequest request)
request - request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||