org.basex.io
Class IOContent

java.lang.Object
  extended by org.basex.io.IO
      extended by org.basex.io.IOContent

public final class IOContent
extends IO

Byte contents, wrapped into an IO representation.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.io.IO
BASEXSUFFIX, BLOCKFILL, BLOCKSIZE, DUMMY, GZSUFFIX, MAXHEIGHT, NODEPOWER, NUMOFF, XMLSUFFIX, XQSUFFIX, ZIPSUFFIX
 
Constructor Summary
IOContent(byte[] c)
          Constructor.
IOContent(byte[] c, String p)
          Constructor.
 
Method Summary
 BufferInput buffer()
          Returns a buffered reader for the file.
 void cache()
          Caches the contents.
 InputSource inputSource()
          Returns the next input source.
 IO merge(String f)
          Merges two filenames.
 String toString()
           
 
Methods inherited from class org.basex.io.IO
children, content, date, dbname, delete, dir, eq, exists, get, getDir, isDir, length, md, more, name, path, url, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IOContent

public IOContent(byte[] c)
Constructor.

Parameters:
c - contents

IOContent

public IOContent(byte[] c,
                 String p)
Constructor.

Parameters:
c - contents
p - content path
Method Detail

cache

public void cache()
Description copied from class: IO
Caches the contents.

Specified by:
cache in class IO

inputSource

public InputSource inputSource()
Description copied from class: IO
Returns the next input source.

Specified by:
inputSource in class IO
Returns:
input source

buffer

public BufferInput buffer()
Description copied from class: IO
Returns a buffered reader for the file.

Specified by:
buffer in class IO
Returns:
buffered reader

merge

public IO merge(String f)
Description copied from class: IO
Merges two filenames.

Specified by:
merge in class IO
Parameters:
f - filename of the file
Returns:
contents

toString

public String toString()
Overrides:
toString in class IO