public void close() throws IOException {
// do nothing
}
private byte[] readFile(String name) throws IOException {
CoreValue value = null;
NodeState file = getDirectory().getChildNode(name);
if (file != null) {
PropertyState property = file.getProperty("jcr:data");
if (property != null && !property.isArray()) {
value = property.getValue();
}
}
if (value != null) {
InputStream stream = value.getNewStream();
try {
byte[] buffer = new byte[(int) value.length()];
int size = 0;
do {
int n = stream.read(buffer, size, buffer.length - size);
if (n == -1) {