|
||||||||||
| 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, 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. |
java.lang.String |
dir()
Returns the directory. |
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. |
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, 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 path| Method Detail |
|---|
public void cache()
throws java.io.IOException
IO
cache in class IOjava.io.IOException - I/O exceptionpublic boolean exists()
IO
exists in class IOpublic boolean isDir()
IO
isDir in class IOpublic long date()
IO
date in class IOpublic long length()
IO
length in class IO
public boolean more()
throws java.io.IOException
IO
more in class IOjava.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 IOjava.io.IOException - I/O exceptionpublic IO merge(IO f)
IO
merge in class IOf - filename of the file
public java.lang.String dir()
IO
dir in class IOpublic IO[] children()
IO
children in class IO
public void write(byte[] c)
throws java.io.IOException
IO
write in class IOc - 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 | |||||||||