public class EXPathFile extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_NAMESPACE |
static String |
NAMESPACE |
static String |
NEWLINE |
Constructor and Description |
---|
EXPathFile() |
Modifier and Type | Method and Description |
---|---|
static void |
append(XPathContext context,
String file,
Sequence contents) |
static void |
append(XPathContext context,
String file,
Sequence contents,
NodeInfo params) |
static void |
appendBinary(String path,
Base64BinaryValue[] contents) |
static void |
appendText(String path,
String contents) |
static void |
appendText(String path,
String contents,
String encoding) |
static void |
appendTextLines(String path,
String[] contents) |
static void |
appendTextLines(String path,
String[] contents,
String encoding) |
static String |
baseName(String path) |
static String |
baseName(String path,
String suffix) |
static void |
copy(String source,
String target) |
static void |
createDir(String dir) |
static void |
delete(String path) |
static void |
delete(String path,
boolean recurse) |
static String |
dirName(String path) |
static String |
dirSeparator() |
static boolean |
exists(String path) |
static boolean |
isDir(String path) |
static boolean |
isFile(String path) |
static DateTimeValue |
lastModified(String path) |
static String |
lineSeparator() |
static List<String> |
list(String dir) |
static List<String> |
list(String dir,
boolean recursive) |
static List<String> |
list(String dir,
boolean recursive,
String pattern) |
static void |
move(String source,
String target) |
static String |
pathSeparator() |
static String |
pathToNative(String path) |
static AnyURIValue |
pathToUri(String path) |
static Base64BinaryValue |
readBinary(String path) |
static String |
readText(XPathContext context,
String file) |
static String |
readText(XPathContext context,
String path,
String encoding) |
static SequenceIterator |
readTextLines(String path) |
static SequenceIterator |
readTextLines(String path,
String encoding) |
static String |
resolvePath(String path) |
static long |
size(String path) |
static void |
write(XPathContext context,
String file,
Sequence contents) |
static void |
write(XPathContext context,
String file,
Sequence contents,
NodeInfo params) |
static void |
writeBinary(String path,
Base64BinaryValue contents) |
static void |
writeText(String path,
String contents) |
static void |
writeText(String path,
String contents,
String encoding) |
public static final String NAMESPACE
public static final String ERROR_NAMESPACE
public static final String NEWLINE
public static boolean exists(String path)
public static boolean isDir(String path)
public static boolean isFile(String path)
public static DateTimeValue lastModified(String path) throws XPathException
XPathException
public static long size(String path) throws XPathException
XPathException
public static void append(XPathContext context, String file, Sequence contents) throws XPathException
XPathException
public static void append(XPathContext context, String file, Sequence contents, NodeInfo params) throws XPathException
XPathException
public static void appendText(String path, String contents) throws XPathException
XPathException
public static void appendText(String path, String contents, String encoding) throws XPathException
XPathException
public static void appendTextLines(String path, String[] contents) throws XPathException
XPathException
public static void appendTextLines(String path, String[] contents, String encoding) throws XPathException
XPathException
public static void appendBinary(String path, Base64BinaryValue[] contents) throws XPathException
XPathException
public static void copy(String source, String target) throws XPathException
XPathException
public static void createDir(String dir) throws XPathException
XPathException
public static void delete(String path) throws XPathException
XPathException
public static void delete(String path, boolean recurse) throws XPathException
XPathException
public static List<String> list(String dir) throws XPathException
XPathException
public static List<String> list(String dir, boolean recursive) throws XPathException
XPathException
public static List<String> list(String dir, boolean recursive, String pattern) throws XPathException
XPathException
public static void move(String source, String target) throws XPathException
XPathException
public static Base64BinaryValue readBinary(String path) throws XPathException
XPathException
public static String readText(XPathContext context, String file) throws XPathException
XPathException
public static String readText(XPathContext context, String path, String encoding) throws XPathException
XPathException
public static SequenceIterator readTextLines(String path) throws XPathException
XPathException
public static SequenceIterator readTextLines(String path, String encoding) throws XPathException
XPathException
public static void write(XPathContext context, String file, Sequence contents) throws XPathException
XPathException
public static void write(XPathContext context, String file, Sequence contents, NodeInfo params) throws XPathException
XPathException
public static void writeText(String path, String contents) throws XPathException
XPathException
public static void writeText(String path, String contents, String encoding) throws XPathException
XPathException
public static void writeBinary(String path, Base64BinaryValue contents) throws XPathException
XPathException
public static String pathToNative(String path) throws XPathException
XPathException
public static AnyURIValue pathToUri(String path)
public static String dirSeparator()
public static String pathSeparator()
public static String lineSeparator()
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.