org.csc.phynixx.tutorial
Interface UTFWriter

All Known Implementing Classes:
UTFWriterImpl

public interface UTFWriter

Created by Christoph Schmidt-Casdorff on 04.02.14.


Method Summary
 void close()
           
 String getFilename()
           
 boolean isClosed()
           
 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()
           
 void unlock(String lockToken)
           
 long write(String value)
          writes a string to file
 

Method Detail

lock

String lock()
            throws InterruptedException
Returns:
lockToken you need to identify the unlock
Throws:
InterruptedException

unlock

void unlock(String lockToken)

isClosed

boolean isClosed()

resetContent

@RequiresTransaction
void resetContent()
                  throws IOException
resets the content of the file associated with die current transaction

Throws:
IOException

write

@RequiresTransaction
long write(String value)
           throws IOException
writes a string to file

Parameters:
value -
Returns:
Throws:
IOException

close

void close()

getFilename

@RequiresTransaction
String getFilename()
                   throws IOException
Throws:
IOException

readContent

List<String> readContent()
                         throws IOException
reads the content

Returns:
Throws:
IOException

size

long size()
          throws IOException
Throws:
IOException

restoreSize

void restoreSize(long filePosition)
                 throws IOException
Throws:
IOException

position

long position()
              throws IOException
Throws:
IOException


Copyright © 2015. All rights reserved.