Xindice API
version 1.1b3

org.apache.xindice.core.filer
Class Paged.Page

java.lang.Object
  |
  +--org.apache.xindice.core.filer.Paged.Page
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
Paged

public final class Paged.Page
extends java.lang.Object
implements java.lang.Comparable

Page


Constructor Summary
Paged.Page(java.lang.Long pageNum)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 void flush()
          Flushes content of the dirty page into the file
 Key getKey()
           
 Paged.PageHeader getPageHeader()
           
 java.lang.Long getPageNum()
           
 void read()
          Reads a page into the memory, once.
 void setKey(Key key)
           
 void streamFrom(java.io.InputStream is)
           
 void streamTo(java.io.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(java.lang.Long pageNum)
           throws java.io.IOException
Method Detail

read

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

write

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

flush

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

getPageNum

public java.lang.Long getPageNum()

getPageHeader

public Paged.PageHeader getPageHeader()

setKey

public void setKey(Key key)

getKey

public Key getKey()

streamTo

public void streamTo(java.io.OutputStream os)
              throws java.io.IOException

streamFrom

public void streamFrom(java.io.InputStream is)
                throws java.io.IOException

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

Xindice API
version 1.1b3

Copyright (c) 1999-2003 The Apache Software Foundation. All Rights Reserved.