com.basho.riak.client.http.util
Class OneTokenInputStream
java.lang.Object
java.io.InputStream
com.basho.riak.client.http.util.OneTokenInputStream
- All Implemented Interfaces:
- Closeable
public class OneTokenInputStream
- extends InputStream
A wrapper that reads a single element an underlying InputStream
containing contains a delimited list
- Author:
- jlee
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneTokenInputStream
public OneTokenInputStream(InputStream in,
String delimiter)
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStream
- Throws:
IOException
done
public boolean done()
Copyright © 2012. All Rights Reserved.