return new String(buf);
return encoding == null ? new String(buf) : new String(buf, encoding);
    public String getContent() throws IOException {        ZipFile zipfile = null;        try {            zipfile = repository.getZipFile();            ZipEntry entry = zipfile.getEntry(entryName);            if (entry == null) {                throw new IOException("Zip resource " + this + " does not exist");            }            InputStreamReader in = new InputStreamReader(zipfile.getInputStream(entry));            int size = (int) entry.getSize();            char[] buf = new char[size];            int read = 0;            while (read < size) {                int r = in.read(buf, read, size-read);                if (r == -1)                    break;                read += r;            }            in.close();            return new String(buf);        } finally {            zipfile.close();        }    }