public abstract class FileStore extends Object implements AutoCleanupUtil.Removable
| Modifier and Type | Class and Description |
|---|---|
class |
FileStore.FileStoreOutputStream
A customized buffered stream with an exposed buffer
|
| Constructor and Description |
|---|
FileStore() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createInputStream(long start) |
ExtensibleBufferedInputStream |
createInputStream(long start,
long length) |
OutputStream |
createOutputStream() |
FileStore.FileStoreOutputStream |
createOutputStream(int maxMemorySize) |
abstract long |
getLength() |
int |
read(long fileOffset,
byte[] b,
int offSet,
int length) |
void |
readFully(long fileOffset,
byte[] b,
int offSet,
int length) |
protected abstract int |
readWrite(long fileOffset,
byte[] b,
int offSet,
int length,
boolean write) |
void |
remove() |
protected abstract void |
removeDirect() |
abstract void |
setLength(long length) |
void |
write(byte[] bytes,
int offset,
int length) |
void |
write(long start,
byte[] bytes,
int offset,
int length) |
public abstract long getLength()
public abstract void setLength(long length)
throws IOException
IOExceptionpublic int read(long fileOffset,
byte[] b,
int offSet,
int length)
throws IOException
IOExceptionprotected abstract int readWrite(long fileOffset,
byte[] b,
int offSet,
int length,
boolean write)
throws IOException
IOExceptionpublic void readFully(long fileOffset,
byte[] b,
int offSet,
int length)
throws IOException
IOExceptionpublic void write(byte[] bytes,
int offset,
int length)
throws IOException
IOExceptionpublic void write(long start,
byte[] bytes,
int offset,
int length)
throws IOException
IOExceptionpublic void remove()
remove in interface AutoCleanupUtil.Removableprotected abstract void removeDirect()
public ExtensibleBufferedInputStream createInputStream(long start, long length)
public InputStream createInputStream(long start)
public OutputStream createOutputStream()
public FileStore.FileStoreOutputStream createOutputStream(int maxMemorySize)
Copyright © 2019. All rights reserved.