Methods Summary |
---|
public org.apache.http.io.HttpTransportMetrics | getMetrics()
return this.in.getMetrics();
|
public boolean | isDataAvailable(int timeout)
return this.in.isDataAvailable(timeout);
|
public int | read(byte[] b, int off, int len)
int l = this.in.read(b, off, len);
if (this.wire.enabled() && l > 0) {
this.wire.input(b, off, l);
}
return l;
|
public int | read()
int l = this.in.read();
if (this.wire.enabled() && l > 0) {
this.wire.input(l);
}
return l;
|
public int | read(byte[] b)
int l = this.in.read(b);
if (this.wire.enabled() && l > 0) {
this.wire.input(b, 0, l);
}
return l;
|
public java.lang.String | readLine()
String s = this.in.readLine();
if (this.wire.enabled() && s != null) {
this.wire.input(s + "[EOL]");
}
return s;
|
public int | readLine(org.apache.http.util.CharArrayBuffer buffer)
int l = this.in.readLine(buffer);
if (this.wire.enabled() && l > 0) {
int pos = buffer.length() - l;
String s = new String(buffer.buffer(), pos, l);
this.wire.input(s + "[EOL]");
}
return l;
|