krati.io
Interface DataWriter

All Known Implementing Classes:
ChannelWriter, FastDataWriter, MappedWriter

public interface DataWriter

DataWriter

Author:
jwu

Method Summary
 void close()
           
 void flush()
           
 File getFile()
           
 void open()
           
 long position()
           
 void position(long newPosition)
           
 void writeInt(int value)
           
 void writeInt(long position, int value)
           
 void writeLong(long value)
           
 void writeLong(long position, long value)
           
 void writeShort(long position, short value)
           
 void writeShort(short value)
           
 

Method Detail

getFile

File getFile()

open

void open()
          throws IOException
Throws:
IOException

close

void close()
           throws IOException
Throws:
IOException

flush

void flush()
           throws IOException
Throws:
IOException

writeInt

void writeInt(int value)
              throws IOException
Throws:
IOException

writeLong

void writeLong(long value)
               throws IOException
Throws:
IOException

writeShort

void writeShort(short value)
                throws IOException
Throws:
IOException

writeInt

void writeInt(long position,
              int value)
              throws IOException
Throws:
IOException

writeLong

void writeLong(long position,
               long value)
               throws IOException
Throws:
IOException

writeShort

void writeShort(long position,
                short value)
                throws IOException
Throws:
IOException

position

long position()
              throws IOException
Throws:
IOException

position

void position(long newPosition)
              throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.