net.jxta.search.resolver.io
Class Output

java.lang.Object
  |
  +--net.jxta.search.resolver.io.Output

public abstract class Output
extends java.lang.Object

A random-access output stream


Constructor Summary
Output()
           
 
Method Summary
 void close()
           
protected  void flush()
           
protected abstract  void flushBuffer(byte[] b, int len)
           
 long getFilePointer()
          RandomAccessFile-like methods @see java.io.RandomAccessFile
abstract  long length()
           
 void seek(long pos)
           
 void writeByte(byte b)
           
 void writeBytes(byte[] b, int length)
           
 void writeChars(java.lang.String s, int start, int length)
           
 void writeInt(int i)
           
 void writeLong(long i)
           
 void writeString(java.lang.String s)
           
 void writeVInt(int i)
           
 void writeVInts(int[] ints, int start, int length, boolean deltaEncode)
           
 void writeVLong(long i)
           
 void writeVLongs(long[] longs, int start, int length, boolean deltaEncode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Output

public Output()
Method Detail

writeByte

public final void writeByte(byte b)
                     throws java.io.IOException

writeBytes

public final void writeBytes(byte[] b,
                             int length)
                      throws java.io.IOException

writeInt

public final void writeInt(int i)
                    throws java.io.IOException

writeVInt

public final void writeVInt(int i)
                     throws java.io.IOException

writeVInts

public void writeVInts(int[] ints,
                       int start,
                       int length,
                       boolean deltaEncode)
                throws java.io.IOException

writeLong

public final void writeLong(long i)
                     throws java.io.IOException

writeVLong

public final void writeVLong(long i)
                      throws java.io.IOException

writeVLongs

public void writeVLongs(long[] longs,
                        int start,
                        int length,
                        boolean deltaEncode)
                 throws java.io.IOException

writeString

public final void writeString(java.lang.String s)
                       throws java.io.IOException

writeChars

public final void writeChars(java.lang.String s,
                             int start,
                             int length)
                      throws java.io.IOException

flush

protected final void flush()
                    throws java.io.IOException

flushBuffer

protected abstract void flushBuffer(byte[] b,
                                    int len)
                             throws java.io.IOException

close

public void close()
           throws java.io.IOException

getFilePointer

public final long getFilePointer()
                          throws java.io.IOException
RandomAccessFile-like methods @see java.io.RandomAccessFile

seek

public void seek(long pos)
          throws java.io.IOException

length

public abstract long length()
                     throws java.io.IOException