public String getContent() { try { InputStream in = getInputStream(); byte[] byteBuffer = new byte[in.available()];  in.read(byteBuffer); in.close();  return new String(byteBuffer); } catch (Exception ignore) { return "";
public String getContent(String encoding) throws IOException { InputStream in = getInputStream(); int size = (int) file.length(); byte[] buf = new byte[size]; int read = 0; while (read < size) { int r = in.read(buf, read, size - read); if (r == -1) break; read += r;
    public String getContent() {        try {            InputStream in = getInputStream();            byte[] byteBuffer = new byte[in.available()];            in.read(byteBuffer);            in.close();            return new String(byteBuffer);        } catch (Exception ignore) {            return "";        }    }