Uses of Class
com.biglybt.core.torrent.TOTorrentException
-
-
Uses of TOTorrentException in com.biglybt.core.disk.impl
Methods in com.biglybt.core.disk.impl that throw TOTorrentException Modifier and Type Method Description private static void
DiskManagerImpl. deleteDataFileContents(TOTorrent torrent, java.lang.String torrent_save_dir, java.lang.String torrent_save_file, boolean force_no_recycle)
byte[]
DiskManagerHelper. getPieceHash(int piece_number)
byte[]
DiskManagerImpl. getPieceHash(int piece_number)
-
Uses of TOTorrentException in com.biglybt.core.download
Methods in com.biglybt.core.download that throw TOTorrentException Modifier and Type Method Description static DownloadManagerState
DownloadManagerStateFactory. getDownloadState(TOTorrent torrent)
-
Uses of TOTorrentException in com.biglybt.core.download.impl
Fields in com.biglybt.core.download.impl declared as TOTorrentException Modifier and Type Field Description (package private) TOTorrentException
DownloadManagerStateImpl.CachedStateWrapper. fixup_failure
Methods in com.biglybt.core.download.impl that throw TOTorrentException Modifier and Type Method Description private static void
DownloadManagerStateImpl. copyTorrentToActive(TOTorrent torrent_file, java.io.File state_file, boolean was_corrupt)
protected static java.util.Map
DownloadManagerStateImpl.CachedStateWrapper. export(DownloadManagerState dms)
private static DownloadManagerStateImpl
DownloadManagerStateImpl. getDownloadState(DownloadManagerImpl download_manager, TOTorrent original_torrent, TorrentUtils.ExtendedTorrent target_torrent)
protected static DownloadManagerState
DownloadManagerStateImpl. getDownloadState(DownloadManagerImpl download_manager, java.lang.String torrent_file, byte[] torrent_hash, boolean inactive)
static DownloadManagerState
DownloadManagerStateImpl. getDownloadState(TOTorrent original_torrent)
byte[]
DownloadManagerStateImpl.CachedStateWrapper. getFullHash(int type)
byte[]
DownloadManagerStateImpl.CachedStateWrapper. getHash()
HashWrapper
DownloadManagerStateImpl.CachedStateWrapper. getHashWrapper()
byte[][]
DownloadManagerStateImpl.CachedStateWrapper. getPieces()
protected byte[]
DownloadManagerController. getSecret2(TOTorrent torrent)
protected TorrentUtils.ExtendedTorrent
DownloadManagerStateImpl.CachedStateWrapper. loadRealState()
byte[][]
DownloadManagerStateImpl.CachedStateWrapper. peekPieces()
TOTorrent
DownloadManagerStateImpl.CachedStateWrapper. selectHybridHashType(int type)
void
DownloadManagerStateImpl.CachedStateWrapper. serialiseToBEncodedFile(java.io.File file)
java.util.Map
DownloadManagerStateImpl.CachedStateWrapper. serialiseToMap()
void
DownloadManagerStateImpl.CachedStateWrapper. serialiseToXMLFile(java.io.File file)
void
DownloadManagerStateImpl.CachedStateWrapper. setHashOverride(byte[] hash)
void
DownloadManagerStateImpl.CachedStateWrapper. setPieces(byte[][] pieces)
void
DownloadManagerStateImpl.CachedStateWrapper. setPrivate(boolean _private)
void
DownloadManagerStateImpl.CachedStateWrapper. setSource(java.lang.String str)
-
Uses of TOTorrentException in com.biglybt.core.internat
Methods in com.biglybt.core.internat that throw TOTorrentException Modifier and Type Method Description static LocaleUtilDecoder
LocaleTorrentUtil. getTorrentEncoding(TOTorrent torrent)
Get the torrent's encoding, optionally prompting the user to choose from a list if needed.static LocaleUtilDecoder
LocaleTorrentUtil. getTorrentEncoding(TOTorrent torrent, boolean saveToFileAllowed, boolean forcePrompt)
-
Uses of TOTorrentException in com.biglybt.core.lws
Methods in com.biglybt.core.lws that throw TOTorrentException Modifier and Type Method Description byte[]
LWSTorrent. getFullHash(int type)
byte[]
LWSTorrent. getHash()
HashWrapper
LWSTorrent. getHashWrapper()
byte[]
LWSDiskManager. getPieceHash(int piece_number)
byte[][]
LWSTorrent. getPieces()
TOTorrent
LWSTorrent. selectHybridHashType(int type)
void
LWSTorrent. serialiseToBEncodedFile(java.io.File file)
java.util.Map
LWSTorrent. serialiseToMap()
void
LWSTorrent. serialiseToXMLFile(java.io.File file)
void
LWSTorrent. setHashOverride(byte[] hash)
void
LWSTorrent. setPieces(byte[][] pieces)
void
LWSTorrent. setPrivate(boolean _private)
void
LWSTorrent. setSource(java.lang.String str)
-
Uses of TOTorrentException in com.biglybt.core.torrent
Methods in com.biglybt.core.torrent that throw TOTorrentException Modifier and Type Method Description TOTorrent
TOTorrentCreator. create()
TOTorrent
TOTorrentCreator. create(boolean skip_hashing)
static TOTorrentCreator
TOTorrentFactory. createFromFileOrDirWithComputedPieceLength(int torrent_version, java.io.File file, java.net.URL announce_url, boolean add_hashes)
static TOTorrentCreator
TOTorrentFactory. createFromFileOrDirWithComputedPieceLength(int torrent_version, java.io.File file, java.net.URL announce_url, boolean add_hashes, long piece_min_size, long piece_max_size, long piece_num_lower, long piece_num_upper)
static TOTorrentCreator
TOTorrentFactory. createFromFileOrDirWithComputedPieceLength(java.io.File file, java.net.URL announce_url)
static TOTorrentCreator
TOTorrentFactory. createFromFileOrDirWithFixedPieceLength(int torrent_version, java.io.File file, java.net.URL announce_url, boolean add_hashes, long piece_length)
static TOTorrentCreator
TOTorrentFactory. createFromFileOrDirWithFixedPieceLength(java.io.File file, java.net.URL announce_url)
static TOTorrentCreator
TOTorrentFactory. createFromFileOrDirWithFixedPieceLength(java.io.File file, java.net.URL announce_url, boolean add_hashes)
static TOTorrentCreator
TOTorrentFactory. createFromFileOrDirWithFixedPieceLength(java.io.File file, java.net.URL announce_url, long piece_length)
static TOTorrent
TOTorrentFactory. deserialiseFromBEncodedByteArray(byte[] bytes)
static TOTorrent
TOTorrentFactory. deserialiseFromBEncodedFile(java.io.File file)
static TOTorrent
TOTorrentFactory. deserialiseFromBEncodedInputStream(java.io.InputStream is)
WARNING - take care if you use this that the data you're creating the torrent from doesn't contain unwanted attributes in it (e.g.static TOTorrent
TOTorrentFactory. deserialiseFromMap(java.util.Map data)
static TOTorrent
TOTorrentFactory. deserialiseFromXMLFile(java.io.File file)
byte[]
TOTorrent. getFullHash(int type)
byte[]
TOTorrent. getHash()
For a V1 or hybrid torrent this returns the SHA1 hash For a V2 only torrent it returns the truncated SHA256 hashHashWrapper
TOTorrent. getHashWrapper()
convenience method to get a wrapped hash for performance purposesbyte[][]
TOTorrent. getPieces()
This method provides access to the SHA1/SHA256 hash values (20/32 bytes each) that correspond to the pieces of the torrent.long
TOTorrentCreator. getTorrentDataSizeFromFileOrDir()
static long
TOTorrentFactory. getTorrentDataSizeFromFileOrDir(java.io.File file_or_dir_or_desc, boolean is_layout_descriptor)
default byte[]
TOTorrent. getTruncatedHash(int type)
TOTorrent
TOTorrent. selectHybridHashType(int type)
void
TOTorrent. serialiseToBEncodedFile(java.io.File file)
This method will serialise a torrent using the standard "b-encoding" mechanism into a filejava.util.Map
TOTorrent. serialiseToMap()
This method will serialise a torrent into a Map consistent with that used by the "b-encoding" routines defined elsewherevoid
TOTorrent. serialiseToXMLFile(java.io.File file)
This method will serialise a torrent using an XML encoding to a filevoid
TOTorrent. setHashOverride(byte[] hash)
void
TOTorrent. setPieces(byte[][] pieces)
This method exists to support the temporary discarding of piece hashes to conserver memory.void
TOTorrent. setPrivate(boolean _private)
Note - changing the private attribute CHANGES THE TORRENT HASHvoid
TOTorrent. setSource(java.lang.String source)
Note - changing the source CHANGES THE TORRENT HASH -
Uses of TOTorrentException in com.biglybt.core.torrent.impl
Methods in com.biglybt.core.torrent.impl that throw TOTorrentException Modifier and Type Method Description protected long
TOTorrentFileHasher. add(java.io.File _file)
protected void
TOTorrentFileHasher. addPad(int pad_length)
protected java.util.List<byte[]>
TOTorrentFileHashTreeImpl. addPieceLayer(byte[] piece_layer)
protected long
TOTorrentCreateImpl. calculateNumberOfPieces(java.io.File _file, long _piece_length)
protected long
TOTorrentCreateImpl. calculateTotalFileSize(java.io.File file)
protected void
TOTorrentFileImpl. checkComponents()
protected void
TOTorrentDeserialiseImpl. construct(byte[] bytes)
protected void
TOTorrentDeserialiseImpl. construct(java.io.InputStream is)
protected void
TOTorrentDeserialiseImpl. construct(java.util.Map meta_data)
protected void
TOTorrentCreateImpl. create(boolean skip_hashing)
protected java.util.Map<java.lang.String,java.lang.Object>
TOTorrentCreateV2Impl. create()
TOTorrent
TOTorrentCreatorImpl. create()
TOTorrent
TOTorrentCreatorImpl. create(boolean skip_hashing)
private java.io.File
TOTorrentCreatorImpl. createLayoutMap()
private int
TOTorrentCreateImpl. createV1(boolean skip_hashing)
private int
TOTorrentCreateImpl. createV2(boolean skip_hashing)
protected void
TOTorrentXMLDeserialiser. decodeInfo(SimpleXMLParserDocumentNode doc, TOTorrentImpl torrent)
protected TOTorrent
TOTorrentXMLDeserialiser. decodeRoot(SimpleXMLParserDocument doc)
TOTorrent
TOTorrentXMLDeserialiser. deserialise(java.io.File file)
protected byte[]
TOTorrentFileHasher. getED2KDigest()
byte[]
TOTorrentImpl. getFullHash(int type)
byte[]
TOTorrentImpl. getHash()
HashWrapper
TOTorrentImpl. getHashWrapper()
protected byte[][]
TOTorrentFileHasher. getPieces()
protected byte[]
TOTorrentFileHasher. getSHA1Digest()
long
TOTorrentCreatorImpl. getTorrentDataSizeFromFileOrDir()
protected long
TOTorrentCreateImpl. getTotalFileSize(java.io.File file)
protected long
TOTorrentCreateImpl. getTotalFileSizeSupport(java.io.File file, java.lang.String root)
TOTorrentCreateV2Impl.FileDetails
TOTorrentCreateV2Impl. handleFile(java.io.File file, java.lang.String relative_path)
protected static void
TOTorrentCreateV2Impl. lashUpV1Info(TOTorrentImpl torrent)
private static void
TOTorrentCreateV2Impl. lashUpV2Files(TOTorrentImpl torrent, java.util.List<TOTorrentFileImpl> files, java.util.LinkedList<byte[]> path, java.util.Map<java.lang.String,java.lang.Object> node, long piece_length, long[] torrent_offset, long[] pad_details)
private int
TOTorrentCreateImpl. processDir(TOTorrentFileHasher hasher, java.io.File dir, java.util.List<TOTorrentFileImpl> encoded, java.lang.String base_name, java.lang.String root, long[] torrent_offset)
void
TOTorrentCreateV2Impl. processDirectory(java.io.File dir, java.util.Map<java.lang.String,java.util.Map> node, java.lang.String relative_path)
void
TOTorrentCreateV2Impl. processFile(java.io.File file, java.util.Map<java.lang.String,java.util.Map> node, java.lang.String relative_path)
private java.util.List<TOTorrentCreatorImpl.DescEntry>
TOTorrentCreatorImpl. readDescriptor()
protected byte[]
TOTorrentXMLDeserialiser. readGenericBytes(SimpleXMLParserDocumentNode node)
protected java.util.List
TOTorrentXMLDeserialiser. readGenericList(SimpleXMLParserDocumentNode node)
protected java.lang.Long
TOTorrentXMLDeserialiser. readGenericLong(SimpleXMLParserDocumentNode node)
protected java.util.Map
TOTorrentXMLDeserialiser. readGenericMap(SimpleXMLParserDocumentNode node)
protected TOTorrentXMLDeserialiser.mapEntry
TOTorrentXMLDeserialiser. readGenericMapEntry(SimpleXMLParserDocumentNode node)
protected java.lang.Object
TOTorrentXMLDeserialiser. readGenericValue(SimpleXMLParserDocumentNode node)
protected byte[]
TOTorrentXMLDeserialiser. readLocalisableString(SimpleXMLParserDocumentNode kid)
TOTorrent
TOTorrentImpl. selectHybridHashType(int type)
void
TOTorrentImpl. serialiseToBEncodedFile(java.io.File output_file)
protected byte[]
TOTorrentImpl. serialiseToByteArray()
protected void
TOTorrentXMLSerialiser. serialiseToFile(java.io.File file)
java.util.Map
TOTorrentImpl. serialiseToMap()
void
TOTorrentImpl. serialiseToXMLFile(java.io.File file)
protected void
TOTorrentImpl. setConstructed()
protected void
TOTorrentImpl. setHashFromInfo(java.util.Map info)
void
TOTorrentImpl. setHashOverride(byte[] hash)
void
TOTorrentImpl. setPrivate(boolean _private_torrent)
void
TOTorrentImpl. setSource(java.lang.String str)
protected void
TOTorrentXMLSerialiser. writeInfo()
protected void
TOTorrentXMLSerialiser. writeRoot()
Constructors in com.biglybt.core.torrent.impl that throw TOTorrentException Constructor Description TOTorrentCreateImpl(int _torrent_type, java.util.Map<java.lang.String,java.io.File> _linkage_map, java.io.File _torrent_base, java.net.URL _announce_url, boolean _add_other_hashes, long _piece_length)
TOTorrentCreateImpl(int _torrent_type, java.util.Map<java.lang.String,java.io.File> _linkage_map, java.io.File _torrent_base, java.net.URL _announce_url, boolean _add_other_hashes, long _piece_min_size, long _piece_max_size, long _piece_num_lower, long _piece_num_upper)
TOTorrentCreatorImpl(int _torrent_type, java.io.File _torrent_base, java.net.URL _announce_url, boolean _add_other_hashes, long _piece_length)
TOTorrentCreatorImpl(int _torrent_type, java.io.File _torrent_base, java.net.URL _announce_url, boolean _add_other_hashes, long _piece_min_size, long _piece_max_size, long _piece_num_lower, long _piece_num_upper)
TOTorrentDeserialiseImpl(byte[] bytes)
TOTorrentDeserialiseImpl(java.io.File file)
TOTorrentDeserialiseImpl(java.io.InputStream is)
TOTorrentDeserialiseImpl(java.util.Map map)
TOTorrentFileImpl(TOTorrentImpl _torrent, int _index, long _torrent_offset, long _len, byte[][] _path_components)
TOTorrentFileImpl(TOTorrentImpl _torrent, int _index, long _torrent_offset, long _len, byte[][] _path_components, byte[][] _path_components_utf8)
TOTorrentFileImpl(TOTorrentImpl _torrent, int _index, long _torrent_offset, long _len, byte[][] _path_components, byte[][] _path_components_utf8, byte[] _v2_root_hash)
TOTorrentFileImpl(TOTorrentImpl _torrent, int _index, long _torrent_offset, long _len, java.lang.String _path)
-
Uses of TOTorrentException in com.biglybt.core.tracker.host.impl
Methods in com.biglybt.core.tracker.host.impl that throw TOTorrentException Modifier and Type Method Description byte[]
TRHostExternalTorrent. getFullHash(int type)
byte[]
TRHostExternalTorrent. getHash()
HashWrapper
TRHostExternalTorrent. getHashWrapper()
TOTorrent
TRHostExternalTorrent. selectHybridHashType(int type)
void
TRHostExternalTorrent. serialiseToBEncodedFile(java.io.File file)
java.util.Map
TRHostExternalTorrent. serialiseToMap()
void
TRHostExternalTorrent. serialiseToXMLFile(java.io.File file)
void
TRHostExternalTorrent. setHashOverride(byte[] hash)
void
TRHostExternalTorrent. setPrivate(boolean _private)
void
TRHostExternalTorrent. setSource(java.lang.String str)
-
Uses of TOTorrentException in com.biglybt.core.util
Methods in com.biglybt.core.util with parameters of type TOTorrentException Modifier and Type Method Description static java.lang.String
TorrentUtils. exceptionToText(TOTorrentException e)
Methods in com.biglybt.core.util that throw TOTorrentException Modifier and Type Method Description static TOTorrent
TorrentUtils. cloneTorrent(TOTorrent torrent)
static void
TorrentUtils. copyToFile(TOTorrent torrent, java.io.File file)
static void
TorrentUtils. delete(TOTorrent torrent)
byte[]
TorrentUtils.torrentDelegate. getFullHash(int type)
byte[]
TorrentUtils.torrentDelegate. getHash()
HashWrapper
TorrentUtils.torrentDelegate. getHashWrapper()
byte[][]
TorrentUtils.torrentDelegate. getPieces()
static java.lang.String
TorrentUtils. getTorrentFileName(TOTorrent torrent)
static java.lang.String
TorrentUtils. getTorrentFileName(TOTorrent torrent, boolean is_mandatory)
byte[][]
TorrentUtils.ExtendedTorrent. peekPieces()
byte[][]
TorrentUtils.torrentDelegate. peekPieces()
peeks the pieces, will return null if they are discardedstatic TorrentUtils.ExtendedTorrent
TorrentUtils. readDelegateFromFile(java.io.File file, boolean force_initial_discard)
If you set "create_delegate" to true then you must understand that this results is piece hashes being discarded and then re-read from the torrent file if needed Therefore, if you delete the original torrent file you're going to get errors if you access the pieces after this (and they've been discarded)static TOTorrent
TorrentUtils. readFromBEncodedInputStream(java.io.InputStream is)
static TOTorrent
TorrentUtils. readFromFile(java.io.File file, boolean create_delegate)
static TOTorrent
TorrentUtils. readFromFile(java.io.File file, boolean create_delegate, boolean force_initial_discard)
protected boolean[]
TorrentUtils.torrentDelegate. restoreState(boolean do_pieces, boolean do_fluff)
monitor must be held before calling meTOTorrent
TorrentUtils.torrentDelegate. selectHybridHashType(int type)
void
TorrentUtils.torrentDelegate. serialiseToBEncodedFile(java.io.File target_file)
java.util.Map
TorrentUtils.torrentDelegate. serialiseToMap()
void
TorrentUtils.torrentDelegate. serialiseToXMLFile(java.io.File target_file)
void
TorrentUtils.torrentDelegate. setHashOverride(byte[] hash)
void
TorrentUtils.torrentDelegate. setPieces(byte[][] pieces)
void
TorrentUtils.torrentDelegate. setPrivate(boolean _private)
void
TorrentUtils.torrentDelegate. setSource(java.lang.String str)
static void
TorrentUtils. writeToFile(TOTorrent torrent)
static void
TorrentUtils. writeToFile(TOTorrent torrent, boolean force_backup)
static void
TorrentUtils. writeToFile(TOTorrent torrent, java.io.File file, boolean force_backup)
-
Uses of TOTorrentException in com.biglybt.plugin.magnet
Methods in com.biglybt.plugin.magnet that throw TOTorrentException Modifier and Type Method Description java.net.URL
MagnetPlugin. getMagnetURL(TOTorrent torrent)
-