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 |
setMaxLength(long maxLength) |
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
IOException
public int read(long fileOffset, byte[] b, int offSet, int length) throws IOException
IOException
protected abstract int readWrite(long fileOffset, byte[] b, int offSet, int length, boolean write) throws IOException
IOException
public void readFully(long fileOffset, byte[] b, int offSet, int length) throws IOException
IOException
public void write(byte[] bytes, int offset, int length) throws IOException
IOException
public void write(long start, byte[] bytes, int offset, int length) throws IOException
IOException
public void remove()
remove
in interface AutoCleanupUtil.Removable
protected abstract void removeDirect()
public ExtensibleBufferedInputStream createInputStream(long start, long length)
public InputStream createInputStream(long start)
public OutputStream createOutputStream()
public FileStore.FileStoreOutputStream createOutputStream(int maxMemorySize)
public void setMaxLength(long maxLength)
Copyright © 2018 JBoss by Red Hat. All rights reserved.