final class FileRepresentation
extends java.lang.Object
Kapselt eine Datei für die FileSystemQueue
Modifier and Type | Field and Description |
---|---|
private java.io.DataInputStream |
_inputStream |
private java.io.RandomAccessFile |
_randomAccessFile |
(package private) java.io.File |
_tempFile |
Constructor and Description |
---|
FileRepresentation()
Erstellt eine FileRepresentation-Klasse
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
delete() |
protected void |
finalize() |
java.io.DataInputStream |
getInputStream() |
java.lang.Object |
read(QueueSerializer q) |
byte[] |
readBytes(int len) |
void |
seek(long position) |
void |
setLength(long newLength) |
java.lang.String |
toString() |
void |
writeBytes(byte[] writeBuffer,
int len) |
private final java.io.DataInputStream _inputStream
private final java.io.RandomAccessFile _randomAccessFile
final java.io.File _tempFile
public FileRepresentation() throws java.io.IOException
Erstellt eine FileRepresentation-Klasse
java.io.IOException
- -public void seek(long position)
public java.lang.Object read(QueueSerializer q) throws java.io.IOException
java.io.IOException
public void delete()
public void clear() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void setLength(long newLength) throws java.io.IOException
java.io.IOException
public byte[] readBytes(int len) throws java.io.IOException
java.io.IOException
public void writeBytes(byte[] writeBuffer, int len) throws java.io.IOException
java.io.IOException
public java.io.DataInputStream getInputStream()