Uses of Class
com.biglybt.core.torrent.TOTorrentException
Packages that use TOTorrentException
Package
Description
-
Uses of TOTorrentException in com.biglybt.core.disk.impl
Methods in com.biglybt.core.disk.impl that throw TOTorrentExceptionModifier and TypeMethodDescriptionprivate static void
DiskManagerImpl.deleteDataFileContents
(TOTorrent torrent, String torrent_save_dir, 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 TOTorrentExceptionModifier and TypeMethodDescriptionstatic DownloadManagerState
DownloadManagerStateFactory.getDownloadState
(TOTorrent torrent) -
Uses of TOTorrentException in com.biglybt.core.download.impl
Fields in com.biglybt.core.download.impl declared as TOTorrentExceptionModifier and TypeFieldDescription(package private) TOTorrentException
DownloadManagerStateImpl.CachedStateWrapper.fixup_failure
Methods in com.biglybt.core.download.impl that throw TOTorrentExceptionModifier and TypeMethodDescriptionprivate static void
DownloadManagerStateImpl.copyTorrentToActive
(TOTorrent torrent_file, File state_file, boolean was_corrupt) protected static 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, 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()
DownloadManagerStateImpl.CachedStateWrapper.getHashWrapper()
byte[][]
DownloadManagerStateImpl.CachedStateWrapper.getPieces()
protected byte[]
DownloadManagerController.getSecret2
(TOTorrent torrent) boolean
DownloadManagerStateImpl.CachedStateWrapper.isSimpleTorrentDisabled()
protected TorrentUtils.ExtendedTorrent
DownloadManagerStateImpl.CachedStateWrapper.loadRealState()
byte[][]
DownloadManagerStateImpl.CachedStateWrapper.peekPieces()
DownloadManagerStateImpl.CachedStateWrapper.selectHybridHashType
(int type) void
DownloadManagerStateImpl.CachedStateWrapper.serialiseToBEncodedFile
(File file) DownloadManagerStateImpl.CachedStateWrapper.serialiseToMap()
void
DownloadManagerStateImpl.CachedStateWrapper.serialiseToXMLFile
(File file) void
DownloadManagerStateImpl.CachedStateWrapper.setHashOverride
(byte[] hash) void
DownloadManagerStateImpl.CachedStateWrapper.setPieces
(byte[][] pieces) void
DownloadManagerStateImpl.CachedStateWrapper.setPrivate
(boolean _private) DownloadManagerStateImpl.CachedStateWrapper.setSimpleTorrentDisabled
(boolean disabled) void
-
Uses of TOTorrentException in com.biglybt.core.internat
Methods in com.biglybt.core.internat that throw TOTorrentExceptionModifier and TypeMethodDescriptionstatic 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 TOTorrentExceptionModifier and TypeMethodDescriptionbyte[]
LWSTorrent.getFullHash
(int type) byte[]
LWSTorrent.getHash()
LWSTorrent.getHashWrapper()
byte[]
LWSDiskManager.getPieceHash
(int piece_number) byte[][]
LWSTorrent.getPieces()
boolean
LWSTorrent.isSimpleTorrentDisabled()
LWSTorrent.selectHybridHashType
(int type) void
LWSTorrent.serialiseToBEncodedFile
(File file) LWSTorrent.serialiseToMap()
void
LWSTorrent.serialiseToXMLFile
(File file) void
LWSTorrent.setHashOverride
(byte[] hash) void
LWSTorrent.setPieces
(byte[][] pieces) void
LWSTorrent.setPrivate
(boolean _private) LWSTorrent.setSimpleTorrentDisabled
(boolean disabled) void
-
Uses of TOTorrentException in com.biglybt.core.torrent
Methods in com.biglybt.core.torrent that throw TOTorrentExceptionModifier and TypeMethodDescriptionTOTorrentCreator.create()
TOTorrentCreator.create
(boolean skip_hashing) static TOTorrentCreator
TOTorrentFactory.createFromFileOrDirWithComputedPieceLength
(int torrent_version, File file, URL announce_url, boolean add_hashes) static TOTorrentCreator
TOTorrentFactory.createFromFileOrDirWithComputedPieceLength
(int torrent_version, File file, 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
(File file, URL announce_url) static TOTorrentCreator
TOTorrentFactory.createFromFileOrDirWithFixedPieceLength
(int torrent_version, File file, URL announce_url, boolean add_hashes, long piece_length) static TOTorrentCreator
TOTorrentFactory.createFromFileOrDirWithFixedPieceLength
(File file, URL announce_url) static TOTorrentCreator
TOTorrentFactory.createFromFileOrDirWithFixedPieceLength
(File file, URL announce_url, boolean add_hashes) static TOTorrentCreator
TOTorrentFactory.createFromFileOrDirWithFixedPieceLength
(File file, URL announce_url, long piece_length) static TOTorrent
TOTorrentFactory.deserialiseFromBEncodedByteArray
(byte[] bytes) static TOTorrent
TOTorrentFactory.deserialiseFromBEncodedFile
(File file) static TOTorrent
TOTorrentFactory.deserialiseFromBEncodedInputStream
(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
(Map data) static TOTorrent
TOTorrentFactory.deserialiseFromXMLFile
(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 hashTOTorrent.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
(File file_or_dir_or_desc, boolean is_layout_descriptor) default byte[]
TOTorrent.getTruncatedHash
(int type) static byte[]
TOTorrentFactory.getV2RootHash
(File file) boolean
TOTorrent.isSimpleTorrentDisabled()
TOTorrent.selectHybridHashType
(int type) void
TOTorrent.serialiseToBEncodedFile
(File file) This method will serialise a torrent using the standard "b-encoding" mechanism into a fileTOTorrent.serialiseToMap()
This method will serialise a torrent into a Map consistent with that used by the "b-encoding" routines defined elsewherevoid
TOTorrent.serialiseToXMLFile
(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 HASHTOTorrent.setSimpleTorrentDisabled
(boolean disabled) void
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 TOTorrentExceptionModifier and TypeMethodDescriptionprotected long
protected void
TOTorrentFileHasher.addPad
(int pad_length) protected List
<byte[]> TOTorrentFileHashTreeImpl.addPieceLayer
(byte[] piece_layer) protected long
TOTorrentCreateImpl.calculateNumberOfPieces
(File _file, long _piece_length) protected long
TOTorrentCreateImpl.calculateTotalFileSize
(File file) protected void
TOTorrentFileImpl.checkComponents()
protected void
TOTorrentDeserialiseImpl.construct
(byte[] bytes) protected void
TOTorrentDeserialiseImpl.construct
(InputStream is) protected void
protected void
TOTorrentCreateImpl.create
(boolean skip_hashing) TOTorrentCreateV2Impl.create()
TOTorrentCreatorImpl.create()
TOTorrentCreatorImpl.create
(boolean skip_hashing) private 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) TOTorrentXMLDeserialiser.deserialise
(File file) protected byte[]
TOTorrentFileHasher.getED2KDigest()
byte[]
TOTorrentImpl.getFullHash
(int type) byte[]
TOTorrentImpl.getHash()
TOTorrentImpl.getHashWrapper()
protected byte[][]
TOTorrentFileHasher.getPieces()
protected byte[]
TOTorrentFileHasher.getSHA1Digest()
long
TOTorrentCreatorImpl.getTorrentDataSizeFromFileOrDir()
protected long
TOTorrentCreateImpl.getTotalFileSize
(File file) protected long
TOTorrentCreateImpl.getTotalFileSizeSupport
(File file, String root) static byte[]
TOTorrentCreateV2Impl.getV2RootHash
(File file) TOTorrentCreateV2Impl.handleFile
(File file, String relative_path) boolean
TOTorrentImpl.isSimpleTorrentDisabled()
protected static void
TOTorrentCreateV2Impl.lashUpV1Info
(TOTorrentImpl torrent) private static void
TOTorrentCreateV2Impl.lashUpV2Files
(TOTorrentImpl torrent, List<TOTorrentFileImpl> files, LinkedList<byte[]> path, Map<String, Object> node, long piece_length, long[] torrent_offset, long[] pad_details) private int
TOTorrentCreateImpl.processDir
(TOTorrentFileHasher hasher, File dir, List<TOTorrentFileImpl> encoded, String base_name, String root, long[] torrent_offset) void
void
private List
<TOTorrentCreatorImpl.DescEntry> TOTorrentCreatorImpl.readDescriptor()
protected byte[]
TOTorrentXMLDeserialiser.readGenericBytes
(SimpleXMLParserDocumentNode node) protected List
TOTorrentXMLDeserialiser.readGenericList
(SimpleXMLParserDocumentNode node) protected Long
TOTorrentXMLDeserialiser.readGenericLong
(SimpleXMLParserDocumentNode node) protected Map
TOTorrentXMLDeserialiser.readGenericMap
(SimpleXMLParserDocumentNode node) protected TOTorrentXMLDeserialiser.mapEntry
TOTorrentXMLDeserialiser.readGenericMapEntry
(SimpleXMLParserDocumentNode node) protected Object
TOTorrentXMLDeserialiser.readGenericValue
(SimpleXMLParserDocumentNode node) protected byte[]
TOTorrentXMLDeserialiser.readLocalisableString
(SimpleXMLParserDocumentNode kid) TOTorrentImpl.selectHybridHashType
(int type) void
TOTorrentImpl.serialiseToBEncodedFile
(File output_file) protected byte[]
TOTorrentImpl.serialiseToByteArray()
protected void
TOTorrentXMLSerialiser.serialiseToFile
(File file) TOTorrentImpl.serialiseToMap()
void
TOTorrentImpl.serialiseToXMLFile
(File file) protected void
TOTorrentImpl.setConstructed()
protected void
TOTorrentImpl.setHashFromInfo
(Map<String, Object> info) void
TOTorrentImpl.setHashOverride
(byte[] hash) void
TOTorrentImpl.setPrivate
(boolean _private_torrent) TOTorrentImpl.setSimpleTorrentDisabled
(boolean disabled) void
protected void
TOTorrentXMLSerialiser.writeInfo()
protected void
TOTorrentXMLSerialiser.writeRoot()
Constructors in com.biglybt.core.torrent.impl that throw TOTorrentExceptionModifierConstructorDescriptionprotected
TOTorrentCreateImpl
(int _torrent_type, Map<String, File> _linkage_map, File _torrent_base, URL _announce_url, boolean _add_other_hashes, long _piece_length) protected
TOTorrentCreateImpl
(int _torrent_type, Map<String, File> _linkage_map, File _torrent_base, 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, File _torrent_base, URL _announce_url, boolean _add_other_hashes, long _piece_length) TOTorrentCreatorImpl
(int _torrent_type, File _torrent_base, 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
(File file) protected
TOTorrentFileImpl
(TOTorrentImpl _torrent, int _index, long _torrent_offset, long _len, byte[][] _path_components) protected
TOTorrentFileImpl
(TOTorrentImpl _torrent, int _index, long _torrent_offset, long _len, byte[][] _path_components, byte[][] _path_components_utf8) protected
TOTorrentFileImpl
(TOTorrentImpl _torrent, int _index, long _torrent_offset, long _len, byte[][] _path_components, byte[][] _path_components_utf8, byte[] _v2_root_hash) protected
TOTorrentFileImpl
(TOTorrentImpl _torrent, int _index, long _torrent_offset, long _len, String _path) -
Uses of TOTorrentException in com.biglybt.core.tracker.host.impl
Methods in com.biglybt.core.tracker.host.impl that throw TOTorrentExceptionModifier and TypeMethodDescriptionbyte[]
TRHostExternalTorrent.getFullHash
(int type) byte[]
TRHostExternalTorrent.getHash()
TRHostExternalTorrent.getHashWrapper()
boolean
TRHostExternalTorrent.isSimpleTorrentDisabled()
TRHostExternalTorrent.selectHybridHashType
(int type) void
TRHostExternalTorrent.serialiseToBEncodedFile
(File file) TRHostExternalTorrent.serialiseToMap()
void
TRHostExternalTorrent.serialiseToXMLFile
(File file) void
TRHostExternalTorrent.setHashOverride
(byte[] hash) void
TRHostExternalTorrent.setPrivate
(boolean _private) TRHostExternalTorrent.setSimpleTorrentDisabled
(boolean disabled) void
-
Uses of TOTorrentException in com.biglybt.core.util
Methods in com.biglybt.core.util with parameters of type TOTorrentExceptionModifier and TypeMethodDescriptionstatic String
TorrentUtils.exceptionToText
(TOTorrentException e) Methods in com.biglybt.core.util that throw TOTorrentExceptionModifier and TypeMethodDescriptionstatic TOTorrent
TorrentUtils.cloneTorrent
(TOTorrent torrent) static void
TorrentUtils.copyToFile
(TOTorrent torrent, File file) static void
byte[]
TorrentUtils.torrentDelegate.getFullHash
(int type) byte[]
TorrentUtils.torrentDelegate.getHash()
TorrentUtils.torrentDelegate.getHashWrapper()
byte[][]
TorrentUtils.torrentDelegate.getPieces()
static String
TorrentUtils.getTorrentFileName
(TOTorrent torrent) static String
TorrentUtils.getTorrentFileName
(TOTorrent torrent, boolean is_mandatory) boolean
TorrentUtils.torrentDelegate.isSimpleTorrentDisabled()
byte[][]
TorrentUtils.ExtendedTorrent.peekPieces()
byte[][]
TorrentUtils.torrentDelegate.peekPieces()
peeks the pieces, will return null if they are discardedstatic TorrentUtils.ExtendedTorrent
TorrentUtils.readDelegateFromFile
(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
(InputStream is) static TOTorrent
TorrentUtils.readFromFile
(File file, boolean create_delegate) static TOTorrent
TorrentUtils.readFromFile
(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 meTorrentUtils.torrentDelegate.selectHybridHashType
(int type) void
TorrentUtils.torrentDelegate.serialiseToBEncodedFile
(File target_file) TorrentUtils.torrentDelegate.serialiseToMap()
void
TorrentUtils.torrentDelegate.serialiseToXMLFile
(File target_file) void
TorrentUtils.torrentDelegate.setHashOverride
(byte[] hash) void
TorrentUtils.torrentDelegate.setPieces
(byte[][] pieces) void
TorrentUtils.torrentDelegate.setPrivate
(boolean _private) TorrentUtils.torrentDelegate.setSimpleTorrentDisabled
(boolean disabled) void
static void
TorrentUtils.writeToFile
(TOTorrent torrent) static void
TorrentUtils.writeToFile
(TOTorrent torrent, boolean force_backup) static void
TorrentUtils.writeToFile
(TOTorrent torrent, File file, boolean force_backup) -
Uses of TOTorrentException in com.biglybt.plugin.magnet
Methods in com.biglybt.plugin.magnet that throw TOTorrentException