public class MemoryByteStore extends ByteStore
| Modifier and Type | Class and Description |
|---|---|
static class |
MemoryByteStore.Factory |
| Modifier and Type | Field and Description |
|---|---|
protected com.evernote.client.conn.mobile.LazyByteArrayOutputStream |
mByteArrayOutputStream |
protected int |
mBytesWritten |
protected boolean |
mClosed |
protected byte[] |
mData |
| Modifier | Constructor and Description |
|---|---|
protected |
MemoryByteStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getBytesWritten() |
byte[] |
getData()
The returned byte buffer very likely has a different size than the bytes written.
|
void |
reset()
Reset all pointers.
|
void |
write(byte[] buffer,
int offset,
int count) |
void |
write(int oneByte) |
protected final com.evernote.client.conn.mobile.LazyByteArrayOutputStream mByteArrayOutputStream
protected int mBytesWritten
protected boolean mClosed
protected byte[] mData
public void write(byte[] buffer,
int offset,
int count)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int oneByte)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic int getBytesWritten()
getBytesWritten in class ByteStorepublic byte[] getData()
throws java.io.IOException
ByteStoreByteStore.getBytesWritten() bytes with no
offset.