JXTA

net.jxta.impl.xindice.core.filer
Class Paged.Page

java.lang.Object
  extended by net.jxta.impl.xindice.core.filer.Paged.Page
All Implemented Interfaces:
Comparable<Paged.Page>
Enclosing class:
Paged

public final class Paged.Page
extends Object
implements Comparable<Paged.Page>

Paged file's page


Constructor Summary
Paged.Page(Long pageNum)
           
 
Method Summary
 int compareTo(Paged.Page o)
           
 void flush()
          Flushes content of the dirty page into the file
 Key getKey()
           
 Paged.PageHeader getPageHeader()
           
 Long getPageNum()
           
 void read()
          Reads a page into the memory, once.
 void setKey(Key key)
           
 void streamFrom(InputStream is)
           
 void streamTo(OutputStream os)
           
 void write()
          Writes out the header into the this.data, and adds a page to the set of dirty pages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Paged.Page

public Paged.Page(Long pageNum)
Method Detail

read

public void read()
          throws IOException
Reads a page into the memory, once. Subsequent calls are ignored.

Throws:
IOException - if an io error occurs

write

public void write()
           throws IOException
Writes out the header into the this.data, and adds a page to the set of dirty pages.

Throws:
IOException - if an io error occurs

flush

public void flush()
           throws IOException
Flushes content of the dirty page into the file

Throws:
IOException - if an io error occurs

getPageNum

public Long getPageNum()

getPageHeader

public Paged.PageHeader getPageHeader()

setKey

public void setKey(Key key)

getKey

public Key getKey()

streamTo

public void streamTo(OutputStream os)
              throws IOException
Throws:
IOException

streamFrom

public void streamFrom(InputStream is)
                throws IOException
Throws:
IOException

compareTo

public int compareTo(Paged.Page o)
Specified by:
compareTo in interface Comparable<Paged.Page>

JXSE