int reada = os.read(buffer);
os.read(buffer);
    public byte[] getDocumentChunk(User user, String name, int start, int len)    throws EXistException, PermissionDeniedException, IOException {        File file = new File(System.getProperty("java.io.tmpdir")        + File.separator + name);        if (!file.canRead())            throw new EXistException("unable to read file " + name);        if (file.length() < start+len)            throw new EXistException("address too big " + name);        byte buffer[] = new byte[len];        RandomAccessFile os = new RandomAccessFile(file.getAbsolutePath(), "r");        LOG.debug("Read from: " + start + " to: " + (start + len));        os.seek(start);        int reada = os.read(buffer);        os.close();        return buffer;    }