Xindice API
version 1.1

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

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

protected final class Paged.Page
extends Paged.PageKey

Paged file's page


Fields inherited from class org.apache.xindice.core.filer.Paged.PageKey
pageNum
 
Method Summary
 void flush()
          Flushes content of the dirty page into the file
 Key getKey()
           
 Paged.PageHeader getPageHeader()
           
 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 org.apache.xindice.core.filer.Paged.PageKey
compareTo, equals, getPageNum, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

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

write

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

flush

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

getPageHeader

public Paged.PageHeader getPageHeader()

setKey

public void setKey(Key key)

getKey

public Key getKey()

streamTo

public void streamTo(OutputStream os)
              throws IOException

streamFrom

public void streamFrom(InputStream is)
                throws IOException

Xindice API
version 1.1

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