|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.io.IO
org.basex.io.IOFile
public final class IOFile
BaseX file representation, pointing to a local or remote file or byte array contents.
Field Summary |
---|
Fields inherited from class org.basex.io.IO |
---|
BASEXSUFFIX, BLOCKFILL, BLOCKSIZE, DUMMY, GZSUFFIX, MAXHEIGHT, NODEPOWER, TXTSUFFIX, XMLSUFFIX, XQSUFFIX, ZIPSUFFIX |
Constructor Summary | |
---|---|
IOFile(java.lang.String f)
Constructor. |
Method Summary | |
---|---|
BufferInput |
buffer()
Returns a buffered reader for the file. |
void |
cache()
Caches the contents. |
IO[] |
children()
Returns the children of a document. |
long |
date()
Returns the modification date of this file. |
boolean |
delete()
Chops the path and the XML suffix of the specified filename. |
boolean |
exists()
Verifies if the file exists. |
org.xml.sax.InputSource |
inputSource()
Returns the next input source. |
boolean |
isDir()
Returns if this is a directory instance. |
boolean |
isSymLink()
Returns if this is a directory instance. |
long |
length()
Returns the file length. |
IO |
merge(IO f)
Merges two filenames. |
boolean |
more()
Checks if more input streams are found. |
void |
write(byte[] c)
Writes the specified file contents. |
Methods inherited from class org.basex.io.IO |
---|
content, dbdelete, dbfile, dbname, dbpath, eq, get, getDir, isSymlink, name, path, suffix, toString, url, valid |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IOFile(java.lang.String f)
f
- file pathMethod Detail |
---|
public void cache() throws java.io.IOException
IO
cache
in class IO
java.io.IOException
- I/O exceptionpublic boolean exists()
IO
exists
in class IO
public boolean isDir()
IO
isDir
in class IO
public boolean isSymLink() throws java.io.IOException
IO
isSymLink
in class IO
java.io.IOException
- I/O exceptionpublic long date()
IO
date
in class IO
public long length()
IO
length
in class IO
public boolean more() throws java.io.IOException
IO
more
in class IO
java.io.IOException
- I/O exceptionpublic org.xml.sax.InputSource inputSource()
IO
inputSource
in class IO
public BufferInput buffer() throws java.io.IOException
IO
buffer
in class IO
java.io.IOException
- I/O exceptionpublic IO merge(IO f)
IO
merge
in class IO
f
- filename of the file
public IO[] children()
IO
children
in class IO
public void write(byte[] c) throws java.io.IOException
IO
write
in class IO
c
- contents
java.io.IOException
- I/O exceptionpublic boolean delete()
IO
delete
in class IO
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |