public class UTFWriterImpl extends Object implements UTFWriter
| Constructor and Description |
|---|
UTFWriterImpl(File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Schliesst die Datei und den FileChannel
|
String |
getFilename() |
boolean |
isClosed()
zeigt an, ob die Instanz geschlossen ist
|
String |
lock() |
long |
position() |
List<String> |
readContent()
reads the content
|
void |
resetContent()
resets the content of the file associated with die current transaction
|
void |
restoreSize(long filePosition) |
long |
size() |
String |
toString() |
void |
unlock(String lockToken) |
long |
write(String value)
writes a string to file
|
public UTFWriterImpl(File file)
public String lock() throws InterruptedException
lock in interface UTFWriterInterruptedExceptionpublic void unlock(String lockToken)
public void close()
public String getFilename() throws IOException
getFilename in interface UTFWriterIOExceptionpublic boolean isClosed()
public void resetContent()
throws IOException
UTFWriterresetContent in interface UTFWriterIOExceptionpublic long write(String value) throws IOException
UTFWriterwrite in interface UTFWriterIOExceptionpublic List<String> readContent() throws IOException
UTFWriterreadContent in interface UTFWriterIOExceptionpublic long size()
throws IOException
size in interface UTFWriterIOExceptionpublic void restoreSize(long filePosition)
throws IOException
restoreSize in interface UTFWriterIOExceptionpublic long position()
throws IOException
position in interface UTFWriterIOExceptionCopyright © 2017. All rights reserved.