voldemort.utils
Class VoldemortIOUtils
java.lang.Object
voldemort.utils.VoldemortIOUtils
public class VoldemortIOUtils
- extends java.lang.Object
Method Summary |
static void |
closeQuietly(org.apache.http.client.HttpClient httpClient)
|
static void |
closeQuietly(org.apache.http.HttpResponse httpResponse)
|
static void |
closeQuietly(org.apache.http.HttpResponse httpResponse,
java.lang.String context)
|
static void |
copy(java.io.InputStream input,
java.io.Writer output,
long limit)
|
static void |
copy(java.io.InputStream input,
java.io.Writer output,
java.lang.String encoding,
long limit)
|
static int |
copy(java.io.Reader input,
java.io.Writer output,
long limit)
|
static long |
copyLarge(java.io.Reader input,
java.io.Writer output,
long limit)
|
static java.lang.String |
toString(java.io.InputStream input,
long limit)
|
static java.lang.String |
toString(java.io.InputStream input,
java.lang.String encoding,
long limit)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VoldemortIOUtils
public VoldemortIOUtils()
toString
public static java.lang.String toString(java.io.InputStream input,
long limit)
throws java.io.IOException
- Throws:
java.io.IOException
closeQuietly
public static void closeQuietly(org.apache.http.HttpResponse httpResponse,
java.lang.String context)
closeQuietly
public static void closeQuietly(org.apache.http.HttpResponse httpResponse)
closeQuietly
public static void closeQuietly(org.apache.http.client.HttpClient httpClient)
toString
public static java.lang.String toString(java.io.InputStream input,
java.lang.String encoding,
long limit)
throws java.io.IOException
- Throws:
java.io.IOException
copy
public static void copy(java.io.InputStream input,
java.io.Writer output,
java.lang.String encoding,
long limit)
throws java.io.IOException
- Throws:
java.io.IOException
copy
public static void copy(java.io.InputStream input,
java.io.Writer output,
long limit)
throws java.io.IOException
- Throws:
java.io.IOException
copy
public static int copy(java.io.Reader input,
java.io.Writer output,
long limit)
throws java.io.IOException
- Throws:
java.io.IOException
copyLarge
public static long copyLarge(java.io.Reader input,
java.io.Writer output,
long limit)
throws java.io.IOException
- Throws:
java.io.IOException
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu