|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.io.IO
public abstract class IO
Abstract file representation, pointing to a local or remote file or a byte array.
Field Summary | |
---|---|
static String |
BASEXSUFFIX
Database suffix. |
static double |
BLOCKFILL
Fill Factor (0.0 - 1.0). |
static int |
BLOCKSIZE
Disk block/page size. |
static IO |
DUMMY
Return IO dummy instance. |
static String |
GZSUFFIX
GZIP Suffix. |
static int |
MAXHEIGHT
Maximum Tree depth. |
static int |
NODEPOWER
Table NodeSize Power. |
static long |
NUMOFF
Offset for inlining numbers. |
static String |
XMLSUFFIX
XML Suffix. |
static String |
XQSUFFIX
XQuery Suffix. |
static String |
ZIPSUFFIX
ZIP Suffix. |
Method Summary | |
---|---|
abstract BufferInput |
buffer()
Returns a buffered reader for the file. |
abstract void |
cache()
Caches the contents. |
IO[] |
children()
Returns the children of a document. |
byte[] |
content()
Returns the contents. |
long |
date()
Returns the modification date of this file. |
String |
dbname()
Chops the path and the XML suffix of the specified filename and returns the database name. |
boolean |
delete()
Chops the path and the XML suffix of the specified filename. |
String |
dir()
Returns the directory. |
boolean |
eq(IO io)
Compares the filename of the specified IO reference. |
boolean |
exists()
Verifies if the file exists. |
static IO |
get(String s)
Constructor. |
String |
getDir()
Returns the directory of this path. |
abstract InputSource |
inputSource()
Returns the next input source. |
boolean |
isDir()
Returns if this is a directory instance. |
long |
length()
Returns the file length. |
boolean |
md()
Creates the directory. |
abstract IO |
merge(String f)
Merges two filenames. |
boolean |
more()
Checks if more input streams are found. |
String |
name()
Chops the path of the specified filename. |
String |
path()
Returns the path. |
String |
toString()
|
String |
url()
Creates a URL from the specified path. |
void |
write(byte[] c)
Writes the specified file contents. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final IO DUMMY
public static final String BASEXSUFFIX
public static final String XQSUFFIX
public static final String XMLSUFFIX
public static final String ZIPSUFFIX
public static final String GZSUFFIX
public static final int BLOCKSIZE
public static final int NODEPOWER
public static final double BLOCKFILL
public static final int MAXHEIGHT
public static final long NUMOFF
Method Detail |
---|
public static IO get(String s)
s
- source
public final byte[] content() throws IOException
IOException
- I/O exceptionpublic abstract void cache() throws IOException
IOException
- I/O exceptionpublic boolean exists()
public boolean isDir()
public final String getDir()
public long date()
public long length()
public boolean more() throws IOException
IOException
- I/O exceptionpublic abstract InputSource inputSource()
public abstract BufferInput buffer() throws IOException
IOException
- I/O exceptionpublic abstract IO merge(String f)
f
- filename of the file
public boolean md()
public final String dbname()
public final String name()
public final String path()
public String url()
public String dir()
public IO[] children()
public void write(byte[] c) throws IOException
c
- contents
IOException
- I/O exceptionpublic boolean delete()
public final boolean eq(IO io)
io
- io reference
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |