class Request
extends java.lang.Object
修飾子とタイプ | フィールド | 説明 |
---|---|---|
(package private) int |
len |
|
(package private) int |
off |
|
(package private) long |
sendTime |
コンストラクタ | 説明 |
---|---|
Request(PartialPiece piece,
int off,
int len) |
Creates a new Request.
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
PartialPiece |
getPartialPiece() |
The PartialPiece this Request is for
|
int |
getPiece() |
The piece number this Request is for
|
int |
hashCode() |
|
void |
read(java.io.DataInputStream din) |
|
java.lang.String |
toString() |
Request(PartialPiece piece, int off, int len)
piece
- Piece number requested.off
- the offset in the array.len
- the number of bytes requested.public void read(java.io.DataInputStream din) throws java.io.IOException
java.io.IOException
public int getPiece()
public PartialPiece getPartialPiece()
public int hashCode()
hashCode
クラス内 java.lang.Object
public boolean equals(java.lang.Object o)
equals
クラス内 java.lang.Object
public java.lang.String toString()
toString
クラス内 java.lang.Object