org.basex.io
Class IOUrl

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

public final class IOUrl
extends IO

URL reference, 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
IOUrl(String u)
          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.
 
Methods inherited from class org.basex.io.IO
children, content, date, dbname, delete, dir, eq, exists, get, getDir, isDir, length, md, more, name, path, toString, url, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IOUrl

public IOUrl(String u)
Constructor.

Parameters:
u - url
Method Detail

cache

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

Specified by:
cache in class IO
Throws:
IOException - I/O exception

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()
                   throws IOException
Description copied from class: IO
Returns a buffered reader for the file.

Specified by:
buffer in class IO
Returns:
buffered reader
Throws:
IOException - I/O exception

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