A B C D E F G H I L M N O P Q R S T U V W 
All Classes All Packages

A

AbstractBencodedValue - Class in org.johnnei.javatorrent.bittorrent.encoding
Base class for implementations for IBencodedValue which implements all asX methods to throw UnsupportedOperationException
AbstractBencodedValue() - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
AbstractFileSet - Class in org.johnnei.javatorrent.torrent
 
AbstractFileSet(int) - Constructor for class org.johnnei.javatorrent.torrent.AbstractFileSet
 
acceptIncomingConnections(boolean) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
Enables (or disables) the starting of the peer connection accepts upon building of the torrent client.
add(IBencodedValue) - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedList
Adds a value to the bencoded list.
addBlockRequest(Piece, int, int, PeerDirection) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Adds a download or upload job to the peer.
addConnectionFailure(ISocket, IOException) - Method in exception org.johnnei.javatorrent.network.BitTorrentSocketException
 
addDiskJob(IDiskJob) - Method in class org.johnnei.javatorrent.torrent.Torrent
Adds a task to the IOManager of this torrent
addDiskJob(IDiskJob) - Method in class org.johnnei.javatorrent.TorrentClient
Submits the disk job to be processed by the IO manager.
addModuleInfo(Object) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Registers the IModule peer specific information based on the class
addPeer(Peer) - Method in class org.johnnei.javatorrent.torrent.Torrent
Adds a peer to the torrent if not already registered to the torrent.
addStrike(int) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Adds an amount of strikes to the peer
addTorrent(Torrent) - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Adds a torrent to the torrentMap if not already on it
addUploadedBytes(long) - Method in class org.johnnei.javatorrent.torrent.Torrent
Adds the amount of bytes to the uploaded count
announce(Torrent) - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Requests the tracker to execute an announce event.
ANNOUNCE - org.johnnei.javatorrent.bittorrent.tracker.TrackerAction
 
apply(T, U) - Method in interface org.johnnei.javatorrent.utils.CheckedBiFunction
 
Argument - Class in org.johnnei.javatorrent.utils
A class which mimics Objects but throws IllegalArgumentException instead of NullPointerException
asBigInteger() - Method in class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
asBigInteger() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
 
asBigInteger() - Method in interface org.johnnei.javatorrent.bittorrent.encoding.IBencodedValue
 
asBytes() - Method in class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
asBytes() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedString
 
asBytes() - Method in interface org.johnnei.javatorrent.bittorrent.encoding.IBencodedValue
 
asList() - Method in class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
asList() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedList
 
asList() - Method in interface org.johnnei.javatorrent.bittorrent.encoding.IBencodedValue
 
asLong() - Method in class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
asLong() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
 
asLong() - Method in interface org.johnnei.javatorrent.bittorrent.encoding.IBencodedValue
 
asMap() - Method in class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
asMap() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedMap
 
asMap() - Method in interface org.johnnei.javatorrent.bittorrent.encoding.IBencodedValue
 
asString() - Method in class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
asString() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedString
 
asString() - Method in interface org.johnnei.javatorrent.bittorrent.encoding.IBencodedValue
 
available() - Method in class org.johnnei.javatorrent.network.InStream
Calculates the amount of bytes still remaining to read on the stream.

B

BencodedInteger - Class in org.johnnei.javatorrent.bittorrent.encoding
A bencoded integer.
BencodedInteger(long) - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
Creates a new bencoded long.
BencodedInteger(BigInteger) - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
Creates a new bencoded integer.
BencodedList - Class in org.johnnei.javatorrent.bittorrent.encoding
A bencoded list.
BencodedList() - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.BencodedList
Creates a new empty bencoded list.
BencodedMap - Class in org.johnnei.javatorrent.bittorrent.encoding
A bencoded dictionary.
BencodedMap() - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.BencodedMap
Creates a new empty bencoded map.
BencodedString - Class in org.johnnei.javatorrent.bittorrent.encoding
A bencoded string.
BencodedString(byte[]) - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.BencodedString
Creates a new bencoded string based on the given value.
BencodedString(String) - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.BencodedString
Creates a new bencoded string based on the given value.
Bencoding - Class in org.johnnei.javatorrent.bittorrent.encoding
A decoder for Bencoding.
Bencoding() - Constructor for class org.johnnei.javatorrent.bittorrent.encoding.Bencoding
 
BitTorrent - Class in org.johnnei.javatorrent.bittorrent.protocol
 
BitTorrentHandshake - Class in org.johnnei.javatorrent.bittorrent.protocol
 
BitTorrentHandshake(byte[], byte[], byte[]) - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.BitTorrentHandshake
 
BitTorrentHandshakeHandler - Interface in org.johnnei.javatorrent.network.connector
Handler which processes freshly connected peers to initiate the BitTorrent protocol.
BitTorrentProtocolViolationException - Exception in org.johnnei.javatorrent.bittorrent.protocol
Exception to throw when the remote end violates the contract of the BitTorrent protocol.
BitTorrentProtocolViolationException(String) - Constructor for exception org.johnnei.javatorrent.bittorrent.protocol.BitTorrentProtocolViolationException
Creates a new Protocol Violation exception.
BitTorrentProtocolViolationException(String, Throwable) - Constructor for exception org.johnnei.javatorrent.bittorrent.protocol.BitTorrentProtocolViolationException
Creates a new Protocol Violation exception.
BitTorrentSocket - Class in org.johnnei.javatorrent.network
Handles the raw data on the ByteChannel provided by ISocket.
BitTorrentSocket(MessageFactory, ISocket) - Constructor for class org.johnnei.javatorrent.network.BitTorrentSocket
Creates a new bound BitTorrent socket.
BitTorrentSocketException - Exception in org.johnnei.javatorrent.network
 
BitTorrentSocketException(String) - Constructor for exception org.johnnei.javatorrent.network.BitTorrentSocketException
 
BitTorrentSocketException(String, Throwable) - Constructor for exception org.johnnei.javatorrent.network.BitTorrentSocketException
 
Block - Class in org.johnnei.javatorrent.torrent.files
 
Block(int, int) - Constructor for class org.johnnei.javatorrent.torrent.files.Block
Creates a new block which is part of a Piece.
BlockStatus - Enum in org.johnnei.javatorrent.torrent.files
The statuses which a Block can have which can be aggregated to create a status for a Piece
build() - Method in class org.johnnei.javatorrent.bittorrent.protocol.MessageFactory.Builder
 
build() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory.Builder
 
build() - Method in class org.johnnei.javatorrent.internal.TorrentClientSettingsImpl.Builder
 
build() - Method in class org.johnnei.javatorrent.network.ConnectionDegradation.Builder
 
build() - Method in class org.johnnei.javatorrent.phases.PhaseRegulator.Builder
 
build() - Method in class org.johnnei.javatorrent.torrent.Metadata.Builder
 
build() - Method in class org.johnnei.javatorrent.torrent.peer.Peer.Builder
 
build() - Method in class org.johnnei.javatorrent.torrent.Torrent.Builder
Creates a torrent without metadata information (the .torrent file is not present).
build() - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
BUILD - Static variable in class org.johnnei.javatorrent.Version
 
Builder() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.MessageFactory.Builder
 
Builder() - Constructor for class org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory.Builder
 
Builder() - Constructor for class org.johnnei.javatorrent.internal.TorrentClientSettingsImpl.Builder
 
Builder() - Constructor for class org.johnnei.javatorrent.network.ConnectionDegradation.Builder
Creates a new builder without configured defaults.
Builder() - Constructor for class org.johnnei.javatorrent.phases.PhaseRegulator.Builder
Creates a new PhaseRegulator.Builder instance without any IDownloadPhase configured.
Builder() - Constructor for class org.johnnei.javatorrent.torrent.Metadata.Builder
 
Builder() - Constructor for class org.johnnei.javatorrent.torrent.peer.Peer.Builder
 
Builder() - Constructor for class org.johnnei.javatorrent.torrent.Torrent.Builder
 
Builder() - Constructor for class org.johnnei.javatorrent.TorrentClient.Builder
 
byteArrayToString(byte[]) - Static method in class org.johnnei.javatorrent.utils.StringUtils
 
ByteBufferUtils - Class in org.johnnei.javatorrent.network
Helper methods which reduce boiler-plate code for ByteBuffer

C

CallbackFuture<V> - Class in org.johnnei.javatorrent.async
 
CallbackFuture(Callable<V>, Consumer<FutureTask<V>>) - Constructor for class org.johnnei.javatorrent.async.CallbackFuture
 
cancelBlockRequest(Piece, int, int, PeerDirection) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Removes the download or upload job from the peer.
canDownload() - Method in class org.johnnei.javatorrent.torrent.Torrent.Builder
 
canReadMessage() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Buffers the next message for reading.
ceilDivision(int, int) - Static method in class org.johnnei.javatorrent.utils.MathUtils
 
ceilDivision(long, long) - Static method in class org.johnnei.javatorrent.utils.MathUtils
 
checkDisconnect() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
 
CheckedBiFunction<T,​U,​R,​E extends Exception> - Interface in org.johnnei.javatorrent.utils
 
checkHash() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Checks if the received bytes hash matches with the hash which was given in the metadata
checkProgress() - Method in class org.johnnei.javatorrent.torrent.Torrent
Calculates the current progress based on all available fileSet on the HDD
close() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Closes the connection with the socket
close() - Method in interface org.johnnei.javatorrent.network.socket.ISocket
Formally closes the connection
close() - Method in class org.johnnei.javatorrent.network.socket.NioTcpSocket
 
closed() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Checks if the socket is closed
configureTorrentClient(TorrentClient.Builder) - Method in interface org.johnnei.javatorrent.module.IModule
Registers all the mandatory components to the TorrentClient.Builder.
configureTorrentClient(TorrentClient.Builder) - Method in class org.johnnei.javatorrent.tracker.http.HttpTrackerModule
 
connect(InetSocketAddress) - Method in interface org.johnnei.javatorrent.network.socket.ISocket
Connects the underlying Socket to the endpoint.
connect(InetSocketAddress) - Method in class org.johnnei.javatorrent.network.socket.NioTcpSocket
 
CONNECT - org.johnnei.javatorrent.bittorrent.tracker.TrackerAction
 
ConnectionDegradation - Class in org.johnnei.javatorrent.network
Controls the degradation of socket types ordered from most preferred to least preferred.
ConnectionDegradation.Builder - Class in org.johnnei.javatorrent.network
A builder pattern styled class to create ConnectionDegradation instances.
connectPeer(PeerConnectInfo) - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Dispatches the connecting of a peer by the tracker.
copyWithStatus(Block, BlockStatus) - Static method in class org.johnnei.javatorrent.torrent.files.Block
 
countBlocksWithStatus(BlockStatus) - Method in class org.johnnei.javatorrent.torrent.files.Piece
 
countCompletedPieces() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Calculates the amount of pieces which still need to be downloaded
countHavePieces() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the amount of pieces this peer has
countRemainingBytes() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Calculates the amount of bytes which still need to be downloaded
countRemainingBytes() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Counts all block sizes which are not done yet
createById(int) - Method in class org.johnnei.javatorrent.bittorrent.protocol.MessageFactory
Creates a new message instance which maps to the given ID
createCancelRequestFor(Peer, Piece, int, int) - Method in interface org.johnnei.javatorrent.torrent.files.IFileSetRequestFactory
Creates a cancel IMessage for a earlier send out request.
createInitialPhase(TorrentClient, Torrent) - Method in class org.johnnei.javatorrent.phases.PhaseRegulator
Creates an instance of the initial IDownloadPhase for the given Torrent.
createNextPhase(IDownloadPhase, TorrentClient, Torrent) - Method in class org.johnnei.javatorrent.phases.PhaseRegulator
Creates an instance of the next IDownloadPhase for the given Torrent.
createPreferredSocket() - Method in class org.johnnei.javatorrent.network.ConnectionDegradation
Creates a new unconnected socket based on the most prefered connection type.
createRequestFor(Peer, Piece, int, int) - Method in interface org.johnnei.javatorrent.torrent.files.IFileSetRequestFactory
Creates a request to download the given piece block.
createUniqueTransactionId() - Method in class org.johnnei.javatorrent.TorrentClient
 

D

decode(InStream) - Method in class org.johnnei.javatorrent.bittorrent.encoding.Bencoding
Decodes the given string reader into the bencoded data structure.
DEFAULT_ENCODING - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
 
degradeSocket(ISocket) - Method in class org.johnnei.javatorrent.network.ConnectionDegradation
Degrades the given socket into the next type
discardAllBlockRequests() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Cancels all pieces
DiskJobCheckHash - Class in org.johnnei.javatorrent.disk
A job to check the hash of a piece for a given torrent
DiskJobCheckHash(Piece, Consumer<DiskJobCheckHash>) - Constructor for class org.johnnei.javatorrent.disk.DiskJobCheckHash
 
DiskJobReadBlock - Class in org.johnnei.javatorrent.disk
 
DiskJobReadBlock(Piece, int, int, Consumer<DiskJobReadBlock>) - Constructor for class org.johnnei.javatorrent.disk.DiskJobReadBlock
 
DiskJobWriteBlock - Class in org.johnnei.javatorrent.disk
 
DiskJobWriteBlock(Piece, int, byte[], Consumer<DiskJobWriteBlock>) - Constructor for class org.johnnei.javatorrent.disk.DiskJobWriteBlock
Creates a new job to store a block of a piece.
done() - Method in class org.johnnei.javatorrent.async.CallbackFuture
 
download(Torrent) - Method in class org.johnnei.javatorrent.TorrentClient
Initiates the downloading of a torrent.
download(Torrent, Collection<String>) - Method in class org.johnnei.javatorrent.TorrentClient
Initiates the downloading of a torrent.
Download - org.johnnei.javatorrent.torrent.peer.PeerDirection
Receive information from the remote peer

E

enableExtensionBit(int) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
Enables a bit in the extension bytes.
enqueueMessage(IMessage) - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Queues the message to be send
enqueuePeer(PeerConnectInfo) - Method in interface org.johnnei.javatorrent.tracker.IPeerConnector
Queues a peer to be connected
enqueuePeer(PeerConnectInfo) - Method in class org.johnnei.javatorrent.tracker.NioPeerConnector
 
ENTRY_END_BYTES - Static variable in class org.johnnei.javatorrent.bittorrent.encoding.AbstractBencodedValue
 
EqualDistributor - Class in org.johnnei.javatorrent.tracker
An implementation of IPeerDistributor which attempts to equally distribute the peers.
EqualDistributor(TorrentClient, int) - Constructor for class org.johnnei.javatorrent.tracker.EqualDistributor
Creates a distributor which attempts to equally distribute the peers over the torrents.
equals(Object) - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
 
equals(Object) - Method in class org.johnnei.javatorrent.network.PeerConnectInfo
 
equals(Object) - Method in class org.johnnei.javatorrent.torrent.FileInfo
 
equals(Object) - Method in class org.johnnei.javatorrent.torrent.files.Piece
equals(Object) - Method in class org.johnnei.javatorrent.torrent.fileset.FileEntry
 
equals(Object) - Method in class org.johnnei.javatorrent.torrent.Metadata
 
equals(Object) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
equals(Object) - Method in class org.johnnei.javatorrent.torrent.Torrent
 
ERROR - org.johnnei.javatorrent.bittorrent.tracker.TrackerAction
 
EVENT_COMPLETED - org.johnnei.javatorrent.bittorrent.tracker.TrackerEvent
 
EVENT_NONE - org.johnnei.javatorrent.bittorrent.tracker.TrackerEvent
 
EVENT_STARTED - org.johnnei.javatorrent.bittorrent.tracker.TrackerEvent
 
EVENT_STOPPED - org.johnnei.javatorrent.bittorrent.tracker.TrackerEvent
 

F

FileEntry - Class in org.johnnei.javatorrent.torrent.fileset
 
FileEntry(String, long, long) - Constructor for class org.johnnei.javatorrent.torrent.fileset.FileEntry
 
FileInfo - Class in org.johnnei.javatorrent.torrent
 
FileInfo(long, long, File, int) - Constructor for class org.johnnei.javatorrent.torrent.FileInfo
 
fileInfos - Variable in class org.johnnei.javatorrent.torrent.AbstractFileSet
The file info about all the files which are contained within this AbstractFileSet
fileLock - Variable in class org.johnnei.javatorrent.torrent.FileInfo
A lock to prevent concurrent writes to a single file
files - Variable in class org.johnnei.javatorrent.torrent.files.Piece
The files associated with this piece
FullPieceSelect - Class in org.johnnei.javatorrent.torrent.algos.pieceselector
A Piece selection algorithm which favors completing a started piece over starting a second piece.
FullPieceSelect(Torrent) - Constructor for class org.johnnei.javatorrent.torrent.algos.pieceselector.FullPieceSelect
 

G

get(int) - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedList
Gets an item from the bencoded list.
get(String) - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedMap
Gets the value from the map if available.
getAcceptingPort() - Method in class org.johnnei.javatorrent.internal.TorrentClientSettingsImpl
 
getAcceptingPort() - Method in interface org.johnnei.javatorrent.TorrentClientSettings
 
getAddress() - Method in class org.johnnei.javatorrent.network.PeerConnectInfo
 
getBitfieldBytes() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Gets the have pieces in bitfield format as specified by BEP #3.
getBitfieldBytes() - Method in class org.johnnei.javatorrent.torrent.TorrentFileSet
 
getBitTorrentSocket() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Deprecated.
Will be replaced by alternatives as this class is handling a non-extensible process.
getBlockCount() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Gets the amount of blocks in this piece
getBlockData() - Method in class org.johnnei.javatorrent.disk.DiskJobReadBlock
The read data from the piece
getBlockIndex() - Method in class org.johnnei.javatorrent.disk.DiskJobWriteBlock
Gets the block index within the owning piece.
getBlockSize() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Gets the size of a non-truncated block
getBlockSize(int) - Method in class org.johnnei.javatorrent.torrent.files.Piece
Gets the size of the specified block
getBlockStatus(int) - Method in class org.johnnei.javatorrent.torrent.files.Piece
Gets the block status for the block at the given index
getBytes(ByteBuffer, int) - Static method in class org.johnnei.javatorrent.network.ByteBufferUtils
Gets the next length bytes as a byte array.
getChokingStrategy() - Method in interface org.johnnei.javatorrent.phases.IDownloadPhase
Gets the choking strategy which is optimal for this phase.
getChokingStrategy() - Method in class org.johnnei.javatorrent.phases.PhaseData
 
getChokingStrategy() - Method in class org.johnnei.javatorrent.phases.PhaseSeed
 
getClientName() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the client name as reported by the BEP #10 extension if supported.
getConnectingCount() - Method in interface org.johnnei.javatorrent.tracker.IPeerConnector
Gets the amount of peers are pending to be connected.
getConnectingCount() - Method in class org.johnnei.javatorrent.tracker.NioPeerConnector
 
getConnectingCountFor(Torrent) - Method in class org.johnnei.javatorrent.TorrentClient
Calculates how many connections are assigned to the torrent but haven't passed the BitTorrent handshake yet.
getConnectingCountFor(Torrent) - Method in interface org.johnnei.javatorrent.tracker.IPeerConnector
Calculates how many connections are assigned to the torrent but haven't passed the BitTorrent handshake yet.
getConnectingCountFor(Torrent) - Method in class org.johnnei.javatorrent.tracker.NioPeerConnector
 
getConnectionDegradation() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the configured connection degradation rules.
getDependsOn() - Method in interface org.johnnei.javatorrent.module.IModule
Returns the extensions which must be present to allow this module to work at all.
getDependsOn() - Method in class org.johnnei.javatorrent.tracker.http.HttpTrackerModule
 
getDisplayName() - Method in class org.johnnei.javatorrent.torrent.Torrent
 
getDownloadCount() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
The amount of times this torrent has been downloaded
If the tracker returns 0 it will return N/A as the tracker apparently doesn't support it
getDownloadedBytes() - Method in class org.johnnei.javatorrent.torrent.Torrent
The amount of bytes downloaded
getDownloadFolder() - Method in class org.johnnei.javatorrent.torrent.TorrentFileSet
 
getDownloadPort() - Method in class org.johnnei.javatorrent.TorrentClient
getDownloadRate() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Returns the last polled download rate.
getDownloadRate() - Method in class org.johnnei.javatorrent.torrent.Torrent
Sums the download rates of all peers.
getEvent() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
Gets the current tracker event for this Torrent
getExecutorService() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the ScheduledExecutorService which will execute the small tasks
getExtensionBytes() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the eight extension bytes which represent which BitTorrent extensions are enabled on this client.
getFileAccess() - Method in class org.johnnei.javatorrent.torrent.FileInfo
Gets the handle to write/read from this file.
getFileEntries() - Method in class org.johnnei.javatorrent.torrent.Metadata
 
getFileForBytes(int, int, int) - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Gets the FileInfo for the given piece and block
getFileName() - Method in class org.johnnei.javatorrent.torrent.FileInfo
Gets the name of this file.
getFileName() - Method in class org.johnnei.javatorrent.torrent.fileset.FileEntry
 
getFiles() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Creates an unmodifiable view of the list of files in this fileset.
getFileSet() - Method in class org.johnnei.javatorrent.torrent.files.Piece
 
getFileSet() - Method in class org.johnnei.javatorrent.torrent.Metadata
 
getFileSet() - Method in class org.johnnei.javatorrent.torrent.Torrent
Gets the fileSet which are being downloaded within this torrent.
getFirstByteOffset() - Method in class org.johnnei.javatorrent.torrent.FileInfo
The offset of the first byte as if the entire torrent is a single file
getFirstByteOffset() - Method in class org.johnnei.javatorrent.torrent.fileset.FileEntry
 
getFreeWorkTime() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Calculates the amount of blocks we can request without overflowing the peer and without slowing us down.
getHandshakeHandler() - Method in class org.johnnei.javatorrent.TorrentClient
 
getHash() - Method in class org.johnnei.javatorrent.torrent.Metadata
Gets the 20 byte BTIH hash of the torrent.
getHashString() - Method in class org.johnnei.javatorrent.torrent.Metadata
Gets the Metadata.getHash() formatted as hexadecimal.
getId() - Method in interface org.johnnei.javatorrent.bittorrent.protocol.messages.IMessage
The id of this message
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageCancel
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageInterested
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageKeepAlive
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageRequest
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUnchoke
 
getId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUninterested
 
getId() - Method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerAction
 
getId() - Method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerEvent
 
getIdAsString() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
 
getIndex() - Method in class org.johnnei.javatorrent.torrent.files.Block
Gets the index of this block within the owning Piece
getIndex() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Gets the index of this Piece
The index is equal to the offset in the file divided by the default piece size
getInfo(Torrent) - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Retrieves the torrent information which is stored for this tracker.
getLastActivity() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Gets the time at which the last byte has been read or written to the socket.
getLastActivity() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the time at which the last byte has been read or written to the socket.
getLeecherCount() - Method in class org.johnnei.javatorrent.torrent.Torrent
Counts the amount of peers which don't have all pieces yet.
getLeechers() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
The amount of leechers as reported by the tracker
getLength() - Method in interface org.johnnei.javatorrent.bittorrent.protocol.messages.IMessage
The length of the message (only needed on writing)
The length should include the byte for the message id
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
 
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageInterested
 
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageKeepAlive
 
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUnchoke
 
getLength() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUninterested
 
getMessage() - Method in exception org.johnnei.javatorrent.network.BitTorrentSocketException
 
getMessageFactory() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the message factory for this client
getMetadata() - Method in class org.johnnei.javatorrent.torrent.Torrent
 
getModule(Class<T>) - Method in class org.johnnei.javatorrent.TorrentClient
Gets the module instance if it is registered to this Torrent Client.
getModuleInfo(Class<T>) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the info object registered with Peer.addModuleInfo(Object)
getModules() - Method in class org.johnnei.javatorrent.TorrentClient
Gets an unmodifiable view of the registered modules to this torrent client.
getName() - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Returns a user friendly name for this tracker.
getName() - Method in class org.johnnei.javatorrent.torrent.Metadata
 
getNeededPieces() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Creates a stream with only the pieces which are not done
getOffset() - Method in class org.johnnei.javatorrent.disk.DiskJobReadBlock
Gets the offset at which the data started reading.
getPeerConnector() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the IPeerConnector which connects new peers
getPeerDistributor() - Method in class org.johnnei.javatorrent.TorrentClient
 
getPeerExtensionBytes() - Method in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrentHandshake
 
getPeerId() - Method in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrentHandshake
 
getPeerId() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the 20-byte peer ID associated to this tracker manager
getPeers() - Method in class org.johnnei.javatorrent.torrent.Torrent
Creates a copy of the list of connected peers.
getPhaseRegulator() - Method in class org.johnnei.javatorrent.TorrentClient
Gets the PhaseRegulator which manages the ordering of the download states.
getPiece() - Method in class org.johnnei.javatorrent.disk.DiskJobCheckHash
Gets the piece for which the hash has been verified.
getPiece() - Method in class org.johnnei.javatorrent.disk.DiskJobReadBlock
The piece from which data was read.
getPiece() - Method in class org.johnnei.javatorrent.disk.DiskJobWriteBlock
Gets the piece for which this store task is being used.
getPiece(int) - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Gets the piece with the given index
getPieceCount() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Gets the amount of pieces in this torrent
getPieceCount() - Method in class org.johnnei.javatorrent.torrent.FileInfo
The amount of pieces which contain a part of data for this file
getPieceForPeer(Peer) - Method in class org.johnnei.javatorrent.torrent.algos.pieceselector.FullPieceSelect
 
getPieceForPeer(Peer) - Method in interface org.johnnei.javatorrent.torrent.algos.pieceselector.IPieceSelector
Gets the next piece to download
getPieceHashes() - Method in class org.johnnei.javatorrent.torrent.Metadata
 
getPieceSelector() - Method in class org.johnnei.javatorrent.torrent.Torrent
The regulator which is managing this download
getPieceSize() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Gets the size of a non-truncated piece.
getPieceSize() - Method in class org.johnnei.javatorrent.torrent.Metadata
 
getPieceSize() - Method in class org.johnnei.javatorrent.torrent.TorrentFileSet
Gets the default piece size
getPriority() - Method in class org.johnnei.javatorrent.disk.DiskJobCheckHash
 
getPriority() - Method in class org.johnnei.javatorrent.disk.DiskJobReadBlock
The priority of this job
getPriority() - Method in class org.johnnei.javatorrent.disk.DiskJobWriteBlock
The priority of this job
getPriority() - Method in interface org.johnnei.javatorrent.disk.IDiskJob
The priority of this job
getReadableChannel() - Method in interface org.johnnei.javatorrent.network.socket.ISocket
 
getReadableChannel() - Method in class org.johnnei.javatorrent.network.socket.NioTcpSocket
 
getReadDuration() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
getReadDuration() - Method in class org.johnnei.javatorrent.network.InStream
Gets the duration it took to read this message.
getRelatedBep() - Method in interface org.johnnei.javatorrent.module.IModule
Returns the number of the BEP to which this module is related.
getRelatedBep() - Method in class org.johnnei.javatorrent.tracker.http.HttpTrackerModule
 
getRequestBlock() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Gets a new block to be requested
getRequestFactory() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
 
getRequestFactory() - Method in class org.johnnei.javatorrent.torrent.TorrentFileSet
 
getRequestLimit() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the amount of requests we are allowed to make to this peer
getRequestLimiter() - Method in class org.johnnei.javatorrent.torrent.Torrent
 
getRequestLimiter() - Method in class org.johnnei.javatorrent.TorrentClient
 
getSeedCount() - Method in class org.johnnei.javatorrent.torrent.Torrent
Counts the amount of peers which have all pieces.
getSeeders() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
The amount of seeders as reported by the tracker
getSettings() - Method in class org.johnnei.javatorrent.TorrentClient
 
getSize() - Method in class org.johnnei.javatorrent.torrent.FileInfo
Gets the size of this file
getSize() - Method in class org.johnnei.javatorrent.torrent.files.Block
Gets the amount of bytes expected for this block.
getSize() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Gets the total size of all blocks in bytes
getSize() - Method in class org.johnnei.javatorrent.torrent.fileset.FileEntry
 
getSocketName() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Gets the class simple name of the underlying socket.
getStatus() - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Returns the a user friendly name for the current action which the being executed.
getStatus() - Method in class org.johnnei.javatorrent.torrent.files.Block
Gets the current status of this block.
getString(ByteBuffer, int) - Static method in class org.johnnei.javatorrent.network.ByteBufferUtils
Gets a UTF-8 string of the given length in bytes.
getTextual() - Method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerEvent
 
getTimeSinceLastAnnounce() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
The time since the last announce
getTorrent() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
Gets the associated torrent
getTorrent() - Method in class org.johnnei.javatorrent.network.PeerConnectInfo
 
getTorrent() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the torrent to which this peer is linked.
getTorrentByHash(byte[]) - Method in class org.johnnei.javatorrent.TorrentClient
Gets the torrent associated with the given hash.
getTorrentCount() - Method in class org.johnnei.javatorrent.TorrentClient
 
getTorrentHash() - Method in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrentHandshake
 
getTotalFileSize() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Gets the sum of the file sizes which are defined in this AbstractFileSet
getTrackerFor(String) - Method in class org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory
Either creates or returns the tracker implementation for the given url
getTrackersFor(Torrent) - Method in class org.johnnei.javatorrent.TorrentClient
Gets all trackers which know the given torrent
getTrackersHavingTorrent(Torrent) - Method in class org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory
 
getUploadedBytes() - Method in class org.johnnei.javatorrent.torrent.Torrent
The amount of bytes we have uploaded this session
getUploadRate() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Returns the last polled upload rate.
getUploadRate() - Method in class org.johnnei.javatorrent.torrent.Torrent
Sums the upload rates of all peers.
getWorkQueueSize(PeerDirection) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Gets the amount of pieces the client still needs to send
getWritableChannel() - Method in interface org.johnnei.javatorrent.network.socket.ISocket
 
getWritableChannel() - Method in class org.johnnei.javatorrent.network.socket.NioTcpSocket
 

H

hasBlockWithStatus(BlockStatus) - Method in class org.johnnei.javatorrent.torrent.files.Piece
Tests if any of the blocks have the given status.
hasExtension(int, int) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Checks if the Peer.extensionBytes has the given bit set for the extension which is part of the extension bytes in the handshake
hash(byte[]) - Static method in class org.johnnei.javatorrent.bittorrent.encoding.SHA1
Hashes the given data into SHA-1 Hashing
hashCode() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
 
hashCode() - Method in class org.johnnei.javatorrent.network.PeerConnectInfo
 
hashCode() - Method in class org.johnnei.javatorrent.torrent.FileInfo
 
hashCode() - Method in class org.johnnei.javatorrent.torrent.files.Piece
hashCode() - Method in class org.johnnei.javatorrent.torrent.fileset.FileEntry
 
hashCode() - Method in class org.johnnei.javatorrent.torrent.Metadata
 
hashCode() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
hashCode() - Method in class org.johnnei.javatorrent.torrent.Torrent
 
hasOutboundMessages() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Checks if this socket has messages queued for sending
hasPiece(int) - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Checks if this piece has been completed.
hasPiece(int) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Checks if the peer has the piece with the given index
hasReachedPeerLimit(Torrent) - Method in class org.johnnei.javatorrent.tracker.EqualDistributor
 
hasReachedPeerLimit(Torrent) - Method in interface org.johnnei.javatorrent.tracker.IPeerDistributor
 
hasReachedPeerLimit(Torrent) - Method in class org.johnnei.javatorrent.tracker.UncappedDistributor
 
hasTorrent(Torrent) - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Checks if the tracker can request information about the torrent
HttpTrackerModule - Class in org.johnnei.javatorrent.tracker.http
A IModule to add support for HTTP trackers.
HttpTrackerModule() - Constructor for class org.johnnei.javatorrent.tracker.http.HttpTrackerModule
 

I

IBencodedValue - Interface in org.johnnei.javatorrent.bittorrent.encoding
Represents a value which was bencoded.
IChokingStrategy - Interface in org.johnnei.javatorrent.torrent.algos.choking
Strategy to handle the interested and choke states of Peer
IDiskJob - Interface in org.johnnei.javatorrent.disk
 
IDownloadPhase - Interface in org.johnnei.javatorrent.phases
A phase in the download which will be regulated by this phase
IFileSetRequestFactory - Interface in org.johnnei.javatorrent.torrent.files
The interface which defines methods to construct IMessage to invoke requests for Piece
IMessage - Interface in org.johnnei.javatorrent.bittorrent.protocol.messages
 
IModule - Interface in org.johnnei.javatorrent.module
 
initializeMetadata(byte[]) - Method in class org.johnnei.javatorrent.torrent.Metadata
 
InStream - Class in org.johnnei.javatorrent.network
 
InStream(byte[]) - Constructor for class org.johnnei.javatorrent.network.InStream
Creates a new buffered input stream based on the given byte array.
InStream(byte[], int, int) - Constructor for class org.johnnei.javatorrent.network.InStream
Creates a new buffered input stream based on the section in the given byte array.
InStream(byte[], int, int, Duration) - Constructor for class org.johnnei.javatorrent.network.InStream
Creates a new buffered input stream based on the section in the given byte array.
InStream(byte[], Duration) - Constructor for class org.johnnei.javatorrent.network.InStream
Creates a new buffered input stream based on the given byte array.
IPeerConnector - Interface in org.johnnei.javatorrent.tracker
Interface which defines a system to establish connections with PeerConnectInfo received from ITracker.
IPeerDistributor - Interface in org.johnnei.javatorrent.tracker
An interface which defines how peers get distributed over all the torrents within TorrentClient
IPieceSelector - Interface in org.johnnei.javatorrent.torrent.algos.pieceselector
 
IRequestLimiter - Interface in org.johnnei.javatorrent.torrent.algos.requests
Interface which influences the Peer.setRequestLimit(int)
isAcceptingConnections() - Method in class org.johnnei.javatorrent.internal.TorrentClientSettingsImpl
 
isAcceptingConnections() - Method in interface org.johnnei.javatorrent.TorrentClientSettings
 
isChoked(PeerDirection) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Checks if the client is choked.
isClosed() - Method in interface org.johnnei.javatorrent.network.socket.ISocket
Checks if the connection has been closed
isClosed() - Method in class org.johnnei.javatorrent.network.socket.NioTcpSocket
 
isConnected() - Method in interface org.johnnei.javatorrent.network.socket.ISocket
 
isConnected() - Method in class org.johnnei.javatorrent.network.socket.NioTcpSocket
 
isDone() - Method in interface org.johnnei.javatorrent.phases.IDownloadPhase
Checks if the phase has been finished
isDone() - Method in class org.johnnei.javatorrent.phases.PhaseData
 
isDone() - Method in class org.johnnei.javatorrent.phases.PhaseSeed
 
isDone() - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Tests if all pieces of this fileset have been completed.
isDone() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Checks if all blocks are done
isDownloadingMetadata() - Method in class org.johnnei.javatorrent.torrent.Torrent
If the Torrent should be downloading the metadata information.
isInputShutdown() - Method in interface org.johnnei.javatorrent.network.socket.ISocket
Deprecated. 
isInputShutdown() - Method in class org.johnnei.javatorrent.network.socket.NioTcpSocket
 
isInterested(PeerDirection) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Checks if the client is interested.
isMatchingHash() - Method in class org.johnnei.javatorrent.disk.DiskJobCheckHash
This method returns the result of the DiskJobCheckHash.process() call.
ISocket<I extends SelectableChannel & ReadableByteChannel,​O extends SelectableChannel & WritableByteChannel> - Interface in org.johnnei.javatorrent.network.socket
A facade to allow multiple channel implementations on the same type.
isOutputShutdown() - Method in interface org.johnnei.javatorrent.network.socket.ISocket
Deprecated. 
isOutputShutdown() - Method in class org.johnnei.javatorrent.network.socket.NioTcpSocket
 
isStarted() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Checks all blockStates if they have been started
ITracker - Interface in org.johnnei.javatorrent.bittorrent.tracker
 

L

loadPiece(int, int) - Method in class org.johnnei.javatorrent.torrent.files.Piece
Loads a bit of data from the file but it is not strictly a block as I use it
LoopingRunnable - Class in org.johnnei.javatorrent.async
A Runnable wrapper which handles the stopping of a runnable which should be looping.
LoopingRunnable(Runnable) - Constructor for class org.johnnei.javatorrent.async.LoopingRunnable
 
LoopingRunnable(Runnable, boolean) - Constructor for class org.johnnei.javatorrent.async.LoopingRunnable
 

M

mark() - Method in class org.johnnei.javatorrent.network.InStream
Marks the current position.
MathUtils - Class in org.johnnei.javatorrent.utils
 
MESSAGE_BITFIELD - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Used as a quick-have message.
Only allowed just after an handshake
Each bit represents the have state of a piece: 1 - have, 0 - not have.
Payload:
x times: ubyte - Bitfield data
(x will be Math.ceil(pieceCount / 8);)
The last byte will be padded with zero's so the message will be exactly x bytes
MESSAGE_CANCEL - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Cancel a send piece request
payload:
uint index
uint offset
uint length

MESSAGE_CHOKE - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Used to notify the peer that we choked them
No payload
MESSAGE_HAVE - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Notify the peer that we have a piece
Payload:
1x: (u)int - Piece Index
MESSAGE_INTERESTED - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Used to notify the peer that we got interest in them
No payload
MESSAGE_PIECE - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
The data of a piece
Payload:
uint index - Piece Index
uint offset - Offset within the piece
x ubyte - The data, the length is equal the rest of the message bytes
MESSAGE_PORT - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
This has something to do with DHT
payload:
listen-port

This is not yet implemented in this client
MESSAGE_REQUEST - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Request a piece part from the peer
Payload:
uint index - Piece index
uint offset - Offset within the piece
uint length - The amount of data (Commenly 2^14/2^15), I use 2^14
MESSAGE_UNCHOKE - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Used to notify the peer that we unchoked them
No payload
MESSAGE_UNINTERESTED - Static variable in class org.johnnei.javatorrent.bittorrent.protocol.BitTorrent
Used to notify the peer that we got no interest in them
No payload
MessageBitfield - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageBitfield() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
MessageBitfield(byte[]) - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
MessageBlock - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageBlock() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
MessageBlock(int, int, byte[]) - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
MessageCancel - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageCancel() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageCancel
 
MessageCancel(int, int, int) - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageCancel
 
MessageChoke - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageChoke() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
 
MessageFactory - Class in org.johnnei.javatorrent.bittorrent.protocol
The factory which maps the message IDs to the IMessage instances.
MessageFactory.Builder - Class in org.johnnei.javatorrent.bittorrent.protocol
 
MessageHave - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageHave() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
MessageHave(int) - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
MessageInterested - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageInterested() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageInterested
 
MessageKeepAlive - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
A message object which represents the KeepAlive case of the protocol.
MessageKeepAlive() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageKeepAlive
 
MessageRequest - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageRequest() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageRequest
 
MessageRequest(int, int, int) - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageRequest
 
MessageUnchoke - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageUnchoke() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUnchoke
 
MessageUninterested - Class in org.johnnei.javatorrent.bittorrent.protocol.messages
 
MessageUninterested() - Constructor for class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUninterested
 
Metadata - Class in org.johnnei.javatorrent.torrent
Represents the .torrent file of a Torrent
Metadata.Builder - Class in org.johnnei.javatorrent.torrent
 
ModuleBuildException - Exception in org.johnnei.javatorrent.module
An exception which gets thrown on the IModule.onBuild(TorrentClient) action when it can complete successfully.
ModuleBuildException(String) - Constructor for exception org.johnnei.javatorrent.module.ModuleBuildException
 
ModuleBuildException(String, Throwable) - Constructor for exception org.johnnei.javatorrent.module.ModuleBuildException
 
moveBack(int) - Method in class org.johnnei.javatorrent.network.InStream
Moves the read pointer back with n position.

N

Needed - org.johnnei.javatorrent.torrent.files.BlockStatus
This status indicates that we still need this block and have not yet assigned it to a peer.
NioPeerConnector - Class in org.johnnei.javatorrent.tracker
A peer connector which allows simultaneously connect to several peers at a time.
NioPeerConnector(TorrentClient, int) - Constructor for class org.johnnei.javatorrent.tracker.NioPeerConnector
Creates a new unstarted peer connector.
NioTcpSocket - Class in org.johnnei.javatorrent.network.socket
Default TCP Socket implementation which uses NIO as the underlying platform.
NioTcpSocket() - Constructor for class org.johnnei.javatorrent.network.socket.NioTcpSocket
Creates a new non-blocking TCP Socket.
NioTcpSocket(SocketChannel) - Constructor for class org.johnnei.javatorrent.network.socket.NioTcpSocket
Creates a new Socket with an pre-exisiting channel.

O

of(int) - Static method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerAction
 
onBuild(TorrentClient) - Method in interface org.johnnei.javatorrent.module.IModule
Event called as the last method in the build process of the TorrentClient.Builder.build() call.
onBuild(TorrentClient) - Method in class org.johnnei.javatorrent.tracker.http.HttpTrackerModule
 
onConnectionEstablished(ISocket, byte[]) - Method in interface org.johnnei.javatorrent.network.connector.BitTorrentHandshakeHandler
Initiates the handshake by announcing which torrent we expect the remote end to download.
onConnectionReceived(ISocket) - Method in interface org.johnnei.javatorrent.network.connector.BitTorrentHandshakeHandler
Responds to the received connection with the expected torrent if we have it.
onHashMismatch() - Method in class org.johnnei.javatorrent.torrent.files.Piece
Drops ceil(10%) of the blocks in order to maintain speed and still try to *not* redownload the entire piece
onPhaseEnter() - Method in interface org.johnnei.javatorrent.phases.IDownloadPhase
Prepare the phase
onPhaseEnter() - Method in class org.johnnei.javatorrent.phases.PhaseData
 
onPhaseEnter() - Method in class org.johnnei.javatorrent.phases.PhaseSeed
 
onPhaseExit() - Method in interface org.johnnei.javatorrent.phases.IDownloadPhase
Clean up the phase
onPhaseExit() - Method in class org.johnnei.javatorrent.phases.PhaseData
 
onPhaseExit() - Method in class org.johnnei.javatorrent.phases.PhaseSeed
 
onPostHandshake(Peer) - Method in interface org.johnnei.javatorrent.module.IModule
Called when the peer has successfully passed the handshake with us.
onPostHandshake(Peer) - Method in class org.johnnei.javatorrent.tracker.http.HttpTrackerModule
 
onReceivedBlock(AbstractFileSet, int, int, byte[]) - Method in class org.johnnei.javatorrent.torrent.Torrent
Tells the torrent to save a block of data
onReceivedBlock(Piece, int) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Indicates that we've received the requested block from the peer.
onReceivedBlock(Peer, MessageBlock) - Method in interface org.johnnei.javatorrent.torrent.algos.requests.IRequestLimiter
 
onReceivedBlock(Peer, MessageBlock) - Method in class org.johnnei.javatorrent.torrent.algos.requests.RateBasedLimiter
 
onShutdown() - Method in interface org.johnnei.javatorrent.module.IModule
Event called when the TorrentClient is being shutdown.
onShutdown() - Method in class org.johnnei.javatorrent.tracker.http.HttpTrackerModule
 
onTorrentPhaseChange() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
A callback method which gets invoked when the torrent starts a new phase
org.johnnei.javatorrent - package org.johnnei.javatorrent
 
org.johnnei.javatorrent.async - package org.johnnei.javatorrent.async
 
org.johnnei.javatorrent.bittorrent.encoding - package org.johnnei.javatorrent.bittorrent.encoding
 
org.johnnei.javatorrent.bittorrent.protocol - package org.johnnei.javatorrent.bittorrent.protocol
 
org.johnnei.javatorrent.bittorrent.protocol.messages - package org.johnnei.javatorrent.bittorrent.protocol.messages
 
org.johnnei.javatorrent.bittorrent.tracker - package org.johnnei.javatorrent.bittorrent.tracker
 
org.johnnei.javatorrent.disk - package org.johnnei.javatorrent.disk
 
org.johnnei.javatorrent.internal - package org.johnnei.javatorrent.internal
 
org.johnnei.javatorrent.module - package org.johnnei.javatorrent.module
 
org.johnnei.javatorrent.network - package org.johnnei.javatorrent.network
 
org.johnnei.javatorrent.network.connector - package org.johnnei.javatorrent.network.connector
 
org.johnnei.javatorrent.network.socket - package org.johnnei.javatorrent.network.socket
 
org.johnnei.javatorrent.phases - package org.johnnei.javatorrent.phases
 
org.johnnei.javatorrent.torrent - package org.johnnei.javatorrent.torrent
 
org.johnnei.javatorrent.torrent.algos.choking - package org.johnnei.javatorrent.torrent.algos.choking
 
org.johnnei.javatorrent.torrent.algos.pieceselector - package org.johnnei.javatorrent.torrent.algos.pieceselector
 
org.johnnei.javatorrent.torrent.algos.requests - package org.johnnei.javatorrent.torrent.algos.requests
 
org.johnnei.javatorrent.torrent.files - package org.johnnei.javatorrent.torrent.files
 
org.johnnei.javatorrent.torrent.fileset - package org.johnnei.javatorrent.torrent.fileset
 
org.johnnei.javatorrent.torrent.peer - package org.johnnei.javatorrent.torrent.peer
 
org.johnnei.javatorrent.tracker - package org.johnnei.javatorrent.tracker
 
org.johnnei.javatorrent.tracker.http - package org.johnnei.javatorrent.tracker.http
 
org.johnnei.javatorrent.utils - package org.johnnei.javatorrent.utils
 
OutStream - Class in org.johnnei.javatorrent.network
 
OutStream() - Constructor for class org.johnnei.javatorrent.network.OutStream
 
OutStream(int) - Constructor for class org.johnnei.javatorrent.network.OutStream
 

P

Peer - Class in org.johnnei.javatorrent.torrent.peer
 
Peer.Builder - Class in org.johnnei.javatorrent.torrent.peer
 
PeerConnectInfo - Class in org.johnnei.javatorrent.network
A small class which holds information about the peer which is trying to connect
PeerConnectInfo(Torrent, InetSocketAddress) - Constructor for class org.johnnei.javatorrent.network.PeerConnectInfo
 
PeerDirection - Enum in org.johnnei.javatorrent.torrent.peer
 
PermissiveStrategy - Class in org.johnnei.javatorrent.torrent.algos.choking
A simple choking strategy which attempt to get unchoked by everyone who has any piece we don't have and unchokes anyone who's interested in us.
PermissiveStrategy() - Constructor for class org.johnnei.javatorrent.torrent.algos.choking.PermissiveStrategy
 
PermissiveUploadStrategy - Class in org.johnnei.javatorrent.torrent.algos.choking
A choking strategy which doesn't care about us downloading and allows everyone to download from us.
PermissiveUploadStrategy() - Constructor for class org.johnnei.javatorrent.torrent.algos.choking.PermissiveUploadStrategy
 
PhaseData - Class in org.johnnei.javatorrent.phases
The download phase in which the actual torrent files will be downloaded.
PhaseData(TorrentClient, Torrent) - Constructor for class org.johnnei.javatorrent.phases.PhaseData
Creates a new Data Phase for the given torrent.
PhaseRegulator - Class in org.johnnei.javatorrent.phases
The system which is being used to configure the transitions between IDownloadPhases.
PhaseRegulator.Builder - Class in org.johnnei.javatorrent.phases
A builder-pattern styled class to created the PhaseRegulator configuration.
PhaseSeed - Class in org.johnnei.javatorrent.phases
A phase which is meant to be used for seeding torrents.
PhaseSeed(TorrentClient, Torrent) - Constructor for class org.johnnei.javatorrent.phases.PhaseSeed
Creates a new seeding phase.
Piece - Class in org.johnnei.javatorrent.torrent.files
Represents a piece within a AbstractFileSet.
Piece(AbstractFileSet, byte[], int, int, int) - Constructor for class org.johnnei.javatorrent.torrent.files.Piece
Creates a new piece.
pieces - Variable in class org.johnnei.javatorrent.torrent.AbstractFileSet
The pieces which contain all the information to complete the downloading of the files.
pollRates() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Polls all the transfer speeds.
pollRates() - Method in class org.johnnei.javatorrent.torrent.Torrent
Polls all peers transfer speeds.
process() - Method in class org.johnnei.javatorrent.disk.DiskJobCheckHash
 
process() - Method in class org.johnnei.javatorrent.disk.DiskJobReadBlock
Processes the disk job
process() - Method in class org.johnnei.javatorrent.disk.DiskJobWriteBlock
 
process() - Method in interface org.johnnei.javatorrent.disk.IDiskJob
Processes the disk job
process() - Method in interface org.johnnei.javatorrent.phases.IDownloadPhase
Processing the phase of the torrent
process() - Method in class org.johnnei.javatorrent.phases.PhaseData
 
process() - Method in class org.johnnei.javatorrent.phases.PhaseSeed
 
process(Peer) - Method in interface org.johnnei.javatorrent.bittorrent.protocol.messages.IMessage
Process the message
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageCancel
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageInterested
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageKeepAlive
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageRequest
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUnchoke
 
process(Peer) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUninterested
 
put(String, IBencodedValue) - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedMap
Associates the given bencoded value with the given key.
putString(ByteBuffer, String) - Static method in class org.johnnei.javatorrent.network.ByteBufferUtils
Puts the given string as UTF-8 into the buffer.

Q

queueNextPieceForSending() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Requests to queue the next piece in the socket for sending

R

RateBasedLimiter - Class in org.johnnei.javatorrent.torrent.algos.requests
Created by johnn on 01/10/2016.
RateBasedLimiter() - Constructor for class org.johnnei.javatorrent.torrent.algos.requests.RateBasedLimiter
 
read(InStream) - Method in interface org.johnnei.javatorrent.bittorrent.protocol.messages.IMessage
Read a message from the inputStream
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
 
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageInterested
 
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageKeepAlive
 
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUnchoke
 
read(InStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUninterested
 
readBoolean() - Method in class org.johnnei.javatorrent.network.InStream
Reads a boolean value from the stream.
readByte() - Method in class org.johnnei.javatorrent.network.InStream
Reads a signed byte from the stream.
readChar() - Method in class org.johnnei.javatorrent.network.InStream
Reads a character from the stream.
readFromByteArray(byte[]) - Method in class org.johnnei.javatorrent.torrent.Metadata.Builder
 
readFromFile(File) - Method in class org.johnnei.javatorrent.torrent.Metadata.Builder
 
readFully(byte[]) - Method in class org.johnnei.javatorrent.network.InStream
Fills the given byte array with data read from the stream.
readFully(byte[], int, int) - Method in class org.johnnei.javatorrent.network.InStream
Fills the given section of the byte array with data read from the stream.
readFully(int) - Method in class org.johnnei.javatorrent.network.InStream
Reads length bytes into a new byte array.
readInt() - Method in class org.johnnei.javatorrent.network.InStream
Reads an integer from the stream.
readLong() - Method in class org.johnnei.javatorrent.network.InStream
Reads a long from the stream.
readMessage() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Converts the buffered message to an IMessage.
readShort() - Method in class org.johnnei.javatorrent.network.InStream
Reads a short from the stream.
readString(int) - Method in class org.johnnei.javatorrent.network.InStream
Reads a string from the stream.
readUnsignedByte() - Method in class org.johnnei.javatorrent.network.InStream
Reads an unsigned byte from the stream.
readUnsignedShort() - Method in class org.johnnei.javatorrent.network.InStream
Reads an unsigned short from the stream.
registerConnectionType(Class<T>, Supplier<T>) - Method in class org.johnnei.javatorrent.network.ConnectionDegradation.Builder
Registers a new supported connection type.
registerConnectionType(Class<T>, Supplier<T>, Class<? extends ISocket>) - Method in class org.johnnei.javatorrent.network.ConnectionDegradation.Builder
Registers a new supported connection type.
registerDefaultConnectionType(Class<T>, Supplier<T>) - Method in class org.johnnei.javatorrent.network.ConnectionDegradation.Builder
Registers a new supported connection type.
registerDefaultConnectionType(Class<T>, Supplier<T>, Class<? extends ISocket>) - Method in class org.johnnei.javatorrent.network.ConnectionDegradation.Builder
Registers a new supported connection type.
registerInitialPhase(Class<T>, BiFunction<TorrentClient, Torrent, T>) - Method in class org.johnnei.javatorrent.phases.PhaseRegulator.Builder
Registers the initial IDownloadPhase
registerInitialPhase(Class<T>, BiFunction<TorrentClient, Torrent, T>, Class<? extends IDownloadPhase>) - Method in class org.johnnei.javatorrent.phases.PhaseRegulator.Builder
Registers the initial IDownloadPhase
registerMessage(int, Supplier<IMessage>) - Method in class org.johnnei.javatorrent.bittorrent.protocol.MessageFactory.Builder
 
registerMessage(int, Supplier<IMessage>) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
registerModule(IModule) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
registerPhase(Class<T>, BiFunction<TorrentClient, Torrent, T>) - Method in class org.johnnei.javatorrent.phases.PhaseRegulator.Builder
Registers a new transition to the given IDownloadPhase
registerPhase(Class<T>, BiFunction<TorrentClient, Torrent, T>, Class<? extends IDownloadPhase>) - Method in class org.johnnei.javatorrent.phases.PhaseRegulator.Builder
Registers a new transition to the given IDownloadPhase
registerProtocol(String, CheckedBiFunction<String, TorrentClient, ITracker, TrackerException>) - Method in class org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory.Builder
 
registerTrackerProtocol(String, CheckedBiFunction<String, TorrentClient, ITracker, TrackerException>) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
remove(String) - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedMap
Removes a value from the map.
removePeer(Peer) - Method in class org.johnnei.javatorrent.torrent.Torrent
Removes a peer from the torrent.
Requested - org.johnnei.javatorrent.torrent.files.BlockStatus
This status indicates that we still need this block and have requested it from a peer.
requireNonNull(T, String) - Static method in class org.johnnei.javatorrent.utils.Argument
Tests for null and throws IllegalArgumentException when null.
requirePositive(int, String) - Static method in class org.johnnei.javatorrent.utils.Argument
Tests if the given integer is positive.
requireWithinBounds(int, int, int, String) - Static method in class org.johnnei.javatorrent.utils.Argument
requireWithinBounds(int, int, int, Supplier<String>) - Static method in class org.johnnei.javatorrent.utils.Argument
Tests if the given amount is within the bounds.
resetToMark() - Method in class org.johnnei.javatorrent.network.InStream
Returns to the last marked position with InStream.mark() or 0 if no mark has happened before.
run() - Method in class org.johnnei.javatorrent.async.LoopingRunnable
 

S

scrape() - Method in interface org.johnnei.javatorrent.bittorrent.tracker.ITracker
Requests a scrape off all known torrent in this tracker.
SCRAPE - org.johnnei.javatorrent.bittorrent.tracker.TrackerAction
 
sendMessages() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
Sends messages until the operation is no longer blocking.
serialize() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
 
serialize() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedList
 
serialize() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedMap
 
serialize() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedString
 
serialize() - Method in interface org.johnnei.javatorrent.bittorrent.encoding.IBencodedValue
 
setAbsoluteRequestLimit(int) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Sets the amount of requests this peer can support at most
setBlockStatus(int, BlockStatus) - Method in class org.johnnei.javatorrent.torrent.files.Piece
Updates the block status of the block at the given index.
setChoked(PeerDirection, boolean) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Sets if this peer is choked or not.
setClientName(String) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Sets the client as reported by the Client in BEP #10.
setConnectionDegradation(ConnectionDegradation) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
setDownloadFolder(File) - Method in class org.johnnei.javatorrent.torrent.Torrent.Builder
 
setDownloadPort(int) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
Sets the download port at which we are listening
setEvent(TrackerEvent) - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
Sets the current event for this Torrent
setExecutorService(ScheduledExecutorService) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
setExtensionBytes(byte[]) - Method in class org.johnnei.javatorrent.torrent.peer.Peer.Builder
 
setFileSet(AbstractFileSet) - Method in class org.johnnei.javatorrent.torrent.Metadata
 
setFileSet(TorrentFileSet) - Method in class org.johnnei.javatorrent.torrent.Torrent
Sets the current set of fileSet this torrent is downloading.
setHash(byte[]) - Method in class org.johnnei.javatorrent.torrent.Metadata.Builder
 
setHavingPiece(int) - Method in class org.johnnei.javatorrent.torrent.AbstractFileSet
Marks a piece as completed.
setHavingPiece(int) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Registers that this peer has the given piece
setHavingPiece(int) - Method in class org.johnnei.javatorrent.torrent.TorrentFileSet
 
setId(byte[]) - Method in class org.johnnei.javatorrent.torrent.peer.Peer.Builder
 
setInfo(int, int) - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
Updates the seeder and leecher counts.
setInfo(int, int, int) - Method in class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
Updates the seeder, leecher and completed downloads count.
setInterested(PeerDirection, boolean) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Sets if this peer is interested or not.
setMetadata(Metadata) - Method in class org.johnnei.javatorrent.torrent.Torrent.Builder
 
setName(String) - Method in class org.johnnei.javatorrent.torrent.Torrent.Builder
Sets the display name for this torrent.
setPeerConnector(Function<TorrentClient, IPeerConnector>) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
setPeerDistributor(Function<TorrentClient, IPeerDistributor>) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
Sets the peer distributor which is being used by the IPeerConnector implementation.
setPhaseRegulator(PhaseRegulator) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
setPieceSelector(IPieceSelector) - Method in class org.johnnei.javatorrent.torrent.Torrent
 
setRequestLimit(int) - Method in class org.johnnei.javatorrent.torrent.peer.Peer
Sets the amount of requests we think this peer can handle properly.
This amount will be limited by Peer.absoluteRequestLimit
setRequestLimiter(IRequestLimiter) - Method in class org.johnnei.javatorrent.TorrentClient.Builder
 
setSocket(BitTorrentSocket) - Method in class org.johnnei.javatorrent.torrent.peer.Peer.Builder
 
setStatus(BlockStatus) - Method in class org.johnnei.javatorrent.torrent.files.Block
Updates the status of the block.
setTorrent(Torrent) - Method in class org.johnnei.javatorrent.torrent.peer.Peer.Builder
 
setTorrentClient(TorrentClient) - Method in class org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory.Builder
 
setTorrentClient(TorrentClient) - Method in class org.johnnei.javatorrent.torrent.Torrent.Builder
Sets the torrent client on which this torrent will be registered.
SHA1 - Class in org.johnnei.javatorrent.bittorrent.encoding
 
shutdown() - Method in class org.johnnei.javatorrent.TorrentClient
Shuts down all components of the TorrentClient.
size() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedList
 
size() - Method in class org.johnnei.javatorrent.network.OutStream
 
skipBytes(int) - Method in class org.johnnei.javatorrent.network.InStream
Skips the next n bytes on the stream.
start() - Method in interface org.johnnei.javatorrent.tracker.IPeerConnector
Starts the peer connector
start() - Method in class org.johnnei.javatorrent.tracker.NioPeerConnector
 
stop() - Method in class org.johnnei.javatorrent.async.LoopingRunnable
Stops the runnable once it has completed its cycle.
stop() - Method in interface org.johnnei.javatorrent.tracker.IPeerConnector
Stops the peer connector.
stop() - Method in class org.johnnei.javatorrent.tracker.NioPeerConnector
 
storeBlock(int, byte[]) - Method in class org.johnnei.javatorrent.torrent.files.Piece
Writes the block into the correct file(s)
Stored - org.johnnei.javatorrent.torrent.files.BlockStatus
This status indicates that we received and stored the bytes of this piece but the Piece as an entirety needs to be on this status before we can verify that the received information is correct.
StringUtils - Class in org.johnnei.javatorrent.utils
 
supportsCancellation() - Method in interface org.johnnei.javatorrent.torrent.files.IFileSetRequestFactory
 

T

toByteArray() - Method in class org.johnnei.javatorrent.network.OutStream
 
Torrent - Class in org.johnnei.javatorrent.torrent
 
Torrent(Torrent.Builder) - Constructor for class org.johnnei.javatorrent.torrent.Torrent
Creates a new Torrent.
Torrent.Builder - Class in org.johnnei.javatorrent.torrent
A builder to create new instances of Torrent
TorrentClient - Class in org.johnnei.javatorrent
The Torrent Client is the main entry point for the configuration and initiation of downloads/uploads.
TorrentClient.Builder - Class in org.johnnei.javatorrent
 
TorrentClientSettings - Interface in org.johnnei.javatorrent
 
TorrentClientSettingsImpl - Class in org.johnnei.javatorrent.internal
 
TorrentClientSettingsImpl.Builder - Class in org.johnnei.javatorrent.internal
 
TorrentException - Exception in org.johnnei.javatorrent.torrent
An exception class which allows for checked exception which cannot be gracefully handled within the Torrent logic to be thrown.
TorrentException(String) - Constructor for exception org.johnnei.javatorrent.torrent.TorrentException
Creates a new torrent exception.
TorrentException(String, Throwable) - Constructor for exception org.johnnei.javatorrent.torrent.TorrentException
Creates a new torrent exception.
TorrentFileSet - Class in org.johnnei.javatorrent.torrent
 
TorrentFileSet(Metadata, File) - Constructor for class org.johnnei.javatorrent.torrent.TorrentFileSet
Creates a TorrentFileSet instance based upon a .torrent file
TorrentInfo - Class in org.johnnei.javatorrent.bittorrent.tracker
 
TorrentInfo(Torrent, Clock) - Constructor for class org.johnnei.javatorrent.bittorrent.tracker.TorrentInfo
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedInteger
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.encoding.BencodedString
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageCancel
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageInterested
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageKeepAlive
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageRequest
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUnchoke
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUninterested
 
toString() - Method in class org.johnnei.javatorrent.bittorrent.tracker.TrackerFactory
 
toString() - Method in class org.johnnei.javatorrent.disk.DiskJobCheckHash
 
toString() - Method in class org.johnnei.javatorrent.disk.DiskJobReadBlock
 
toString() - Method in class org.johnnei.javatorrent.disk.DiskJobWriteBlock
 
toString() - Method in class org.johnnei.javatorrent.network.BitTorrentSocket
toString() - Method in class org.johnnei.javatorrent.network.ConnectionDegradation
 
toString() - Method in class org.johnnei.javatorrent.phases.PhaseRegulator
 
toString() - Method in class org.johnnei.javatorrent.torrent.FileInfo
 
toString() - Method in class org.johnnei.javatorrent.torrent.files.Block
 
toString() - Method in class org.johnnei.javatorrent.torrent.files.Piece
toString() - Method in class org.johnnei.javatorrent.torrent.fileset.FileEntry
 
toString() - Method in class org.johnnei.javatorrent.torrent.peer.Peer
toString() - Method in class org.johnnei.javatorrent.torrent.Torrent
 
TrackerAction - Enum in org.johnnei.javatorrent.bittorrent.tracker
 
TrackerEvent - Enum in org.johnnei.javatorrent.bittorrent.tracker
 
TrackerException - Exception in org.johnnei.javatorrent.bittorrent.tracker
 
TrackerException(String) - Constructor for exception org.johnnei.javatorrent.bittorrent.tracker.TrackerException
 
TrackerException(String, Throwable) - Constructor for exception org.johnnei.javatorrent.bittorrent.tracker.TrackerException
 
TrackerFactory - Class in org.johnnei.javatorrent.bittorrent.tracker
 
TrackerFactory.Builder - Class in org.johnnei.javatorrent.bittorrent.tracker
 

U

UncappedDistributor - Class in org.johnnei.javatorrent.tracker
An implementation of IPeerDistributor which does not cap the amount of peers.
UncappedDistributor() - Constructor for class org.johnnei.javatorrent.tracker.UncappedDistributor
Creates an instance of UncappedDistributor
UncappedDistributor(TorrentClient) - Constructor for class org.johnnei.javatorrent.tracker.UncappedDistributor
Creates an instance of UncappedDistributor which allows for UncappedDistributor::new to be used in TorrentClient.Builder.setPeerDistributor(Function)
updateChoking(Peer) - Method in interface org.johnnei.javatorrent.torrent.algos.choking.IChokingStrategy
Checks and possibly updates the choke states of the Peer.
updateChoking(Peer) - Method in class org.johnnei.javatorrent.torrent.algos.choking.PermissiveStrategy
Checks and possibly updates the choke states of the Peer.
updateChoking(Peer) - Method in class org.johnnei.javatorrent.torrent.algos.choking.PermissiveUploadStrategy
 
Upload - org.johnnei.javatorrent.torrent.peer.PeerDirection
Send information to the remote peer

V

valueOf(String) - Static method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerAction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerEvent
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.johnnei.javatorrent.torrent.files.BlockStatus
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.johnnei.javatorrent.torrent.peer.PeerDirection
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerAction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.johnnei.javatorrent.bittorrent.tracker.TrackerEvent
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.johnnei.javatorrent.torrent.files.BlockStatus
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.johnnei.javatorrent.torrent.peer.PeerDirection
Returns an array containing the constants of this enum type, in the order they are declared.
Verified - org.johnnei.javatorrent.torrent.files.BlockStatus
The block information we have is verified to match the expected data.
Version - Class in org.johnnei.javatorrent
 
VERSION - Static variable in class org.johnnei.javatorrent.Version
 
VERSION_MAJOR - Static variable in class org.johnnei.javatorrent.Version
 
VERSION_MINOR - Static variable in class org.johnnei.javatorrent.Version
 
VERSION_PATCH - Static variable in class org.johnnei.javatorrent.Version
 

W

withAcceptingConnections(boolean) - Method in class org.johnnei.javatorrent.internal.TorrentClientSettingsImpl.Builder
 
withAcceptingPort(int) - Method in class org.johnnei.javatorrent.internal.TorrentClientSettingsImpl.Builder
 
write(byte[]) - Method in class org.johnnei.javatorrent.network.OutStream
 
write(byte[], int, int) - Method in class org.johnnei.javatorrent.network.OutStream
 
write(OutStream) - Method in interface org.johnnei.javatorrent.bittorrent.protocol.messages.IMessage
Writes the message to the output stream
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBitfield
 
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageBlock
 
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageChoke
 
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageHave
 
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageInterested
 
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageKeepAlive
 
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUnchoke
 
write(OutStream) - Method in class org.johnnei.javatorrent.bittorrent.protocol.messages.MessageUninterested
 
writeBoolean(boolean) - Method in class org.johnnei.javatorrent.network.OutStream
 
writeByte(int) - Method in class org.johnnei.javatorrent.network.OutStream
 
writeInt(int) - Method in class org.johnnei.javatorrent.network.OutStream
 
writeLong(long) - Method in class org.johnnei.javatorrent.network.OutStream
 
writeShort(int) - Method in class org.johnnei.javatorrent.network.OutStream
 
writeString(String) - Method in class org.johnnei.javatorrent.network.OutStream
 
A B C D E F G H I L M N O P Q R S T U V W 
All Classes All Packages