if (myInputStream != null) {
if (myInputStream == null) {
    public InputStream getInputStream() throws IOException {        if (myInputStream != null) {            myInputStream = new InputStream() {                                public void close() throws IOException {                    myDelegate.getInputStream().close();                }                                public int read() throws IOException {                    int read = myDelegate.getInputStream().read();                    if (read >= 0) {                        myReadBuffer.append((char) read);                    }                    return read;                }                                public int read(byte[] b,int off,int len) throws IOException {                    int read = myDelegate.getInputStream().read(b, off, len);                    if (read >= 0) {                        myReadBuffer.append(new String(b, off, read));                    }                    return read;                }            };        }        return myInputStream;    }