org.gudy.azureus2.core3.torrent.impl
Class TOTorrentFileImpl
java.lang.Object
org.gudy.azureus2.core3.torrent.impl.TOTorrentFileImpl
- All Implemented Interfaces:
- TOTorrentFile
public class TOTorrentFileImpl
- extends Object
- implements TOTorrentFile
Constructor Summary |
protected |
TOTorrentFileImpl(TOTorrent _torrent,
int _index,
long _torrent_offset,
long _len,
byte[][] _path_components)
|
protected |
TOTorrentFileImpl(TOTorrent _torrent,
int _index,
long _torrent_offset,
long _len,
byte[][] _path_components,
byte[][] _path_components_utf8)
|
protected |
TOTorrentFileImpl(TOTorrent _torrent,
int _index,
long _torrent_offset,
long _len,
String _path)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TOTorrentFileImpl
protected TOTorrentFileImpl(TOTorrent _torrent,
int _index,
long _torrent_offset,
long _len,
String _path)
throws TOTorrentException
- Throws:
TOTorrentException
TOTorrentFileImpl
protected TOTorrentFileImpl(TOTorrent _torrent,
int _index,
long _torrent_offset,
long _len,
byte[][] _path_components)
throws TOTorrentException
- Throws:
TOTorrentException
TOTorrentFileImpl
protected TOTorrentFileImpl(TOTorrent _torrent,
int _index,
long _torrent_offset,
long _len,
byte[][] _path_components,
byte[][] _path_components_utf8)
throws TOTorrentException
- Throws:
TOTorrentException
checkComponents
protected void checkComponents()
throws TOTorrentException
- Throws:
TOTorrentException
getTorrent
public TOTorrent getTorrent()
- Specified by:
getTorrent
in interface TOTorrentFile
getIndex
public int getIndex()
- Specified by:
getIndex
in interface TOTorrentFile
getLength
public long getLength()
- Specified by:
getLength
in interface TOTorrentFile
getPathComponentsBasic
public byte[][] getPathComponentsBasic()
getPathComponents
public byte[][] getPathComponents()
- Specified by:
getPathComponents
in interface TOTorrentFile
getPathComponentsUTF8
public byte[][] getPathComponentsUTF8()
isUTF8
protected boolean isUTF8()
setAdditionalProperty
protected void setAdditionalProperty(String name,
Object value)
getAdditionalProperties
public Map getAdditionalProperties()
- Specified by:
getAdditionalProperties
in interface TOTorrentFile
getFirstPieceNumber
public int getFirstPieceNumber()
- Specified by:
getFirstPieceNumber
in interface TOTorrentFile
getLastPieceNumber
public int getLastPieceNumber()
- Specified by:
getLastPieceNumber
in interface TOTorrentFile
getNumberOfPieces
public int getNumberOfPieces()
- Specified by:
getNumberOfPieces
in interface TOTorrentFile
getRelativePath
public String getRelativePath()
- Specified by:
getRelativePath
in interface TOTorrentFile
serializeToMap
public Map serializeToMap()
- Returns:
- Since:
- 4.1.0.5