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 voidDiskManagerImpl.deleteDataFileContents(DownloadManager dm, 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 DownloadManagerStateDownloadManagerStateFactory.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) TOTorrentExceptionDownloadManagerStateImpl.CachedStateWrapper.fixup_failureMethods in com.biglybt.core.download.impl that throw TOTorrentExceptionModifier and TypeMethodDescriptionprivate static voidDownloadManagerStateImpl.copyTorrentToActive(TOTorrent torrent_file, File state_file, boolean was_corrupt) protected static MapDownloadManagerStateImpl.CachedStateWrapper.export(DownloadManagerState dms) private static DownloadManagerStateImplDownloadManagerStateImpl.getDownloadState(DownloadManagerImpl download_manager, TOTorrent original_torrent, TorrentUtils.ExtendedTorrent target_torrent) protected static DownloadManagerStateDownloadManagerStateImpl.getDownloadState(DownloadManagerImpl download_manager, String torrent_file, byte[] torrent_hash, boolean inactive) static DownloadManagerStateDownloadManagerStateImpl.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) booleanDownloadManagerStateImpl.CachedStateWrapper.isSimpleTorrentDisabled()protected TorrentUtils.ExtendedTorrentDownloadManagerStateImpl.CachedStateWrapper.loadRealState()byte[][]DownloadManagerStateImpl.CachedStateWrapper.peekPieces()DownloadManagerStateImpl.CachedStateWrapper.selectHybridHashType(int type) voidDownloadManagerStateImpl.CachedStateWrapper.serialiseToBEncodedFile(File file) DownloadManagerStateImpl.CachedStateWrapper.serialiseToMap()voidDownloadManagerStateImpl.CachedStateWrapper.serialiseToXMLFile(File file) voidDownloadManagerStateImpl.CachedStateWrapper.setHashOverride(byte[] hash) voidDownloadManagerStateImpl.CachedStateWrapper.setPieces(byte[][] pieces) voidDownloadManagerStateImpl.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 LocaleUtilDecoderLocaleTorrentUtil.getTorrentEncoding(TOTorrent torrent) Get the torrent's encoding, optionally prompting the user to choose from a list if needed.static LocaleUtilDecoderLocaleTorrentUtil.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()booleanLWSTorrent.isSimpleTorrentDisabled()LWSTorrent.selectHybridHashType(int type) voidLWSTorrent.serialiseToBEncodedFile(File file) LWSTorrent.serialiseToMap()voidLWSTorrent.serialiseToXMLFile(File file) voidLWSTorrent.setHashOverride(byte[] hash) voidLWSTorrent.setPieces(byte[][] pieces) voidLWSTorrent.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 TOTorrentCreatorTOTorrentFactory.createFromFileOrDirWithComputedPieceLength(int torrent_version, File file, URL announce_url, boolean add_hashes) static TOTorrentCreatorTOTorrentFactory.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 TOTorrentCreatorTOTorrentFactory.createFromFileOrDirWithComputedPieceLength(File file, URL announce_url) static TOTorrentCreatorTOTorrentFactory.createFromFileOrDirWithFixedPieceLength(int torrent_version, File file, URL announce_url, boolean add_hashes, long piece_length) static TOTorrentCreatorTOTorrentFactory.createFromFileOrDirWithFixedPieceLength(File file, URL announce_url) static TOTorrentCreatorTOTorrentFactory.createFromFileOrDirWithFixedPieceLength(File file, URL announce_url, boolean add_hashes) static TOTorrentCreatorTOTorrentFactory.createFromFileOrDirWithFixedPieceLength(File file, URL announce_url, long piece_length) static TOTorrentTOTorrentFactory.deserialiseFromBEncodedByteArray(TOTorrentFactory.TorrentDataHolder bytes) static TOTorrentTOTorrentFactory.deserialiseFromBEncodedFile(File file) static TOTorrentTOTorrentFactory.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 TOTorrentTOTorrentFactory.deserialiseFromMap(Map data) static TOTorrentTOTorrentFactory.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.longTOTorrentCreator.getTorrentDataSizeFromFileOrDir()static longTOTorrentFactory.getTorrentDataSizeFromFileOrDir(File file_or_dir_or_desc, boolean is_layout_descriptor) default byte[]TOTorrent.getTruncatedHash(int type) static byte[]TOTorrentFactory.getV2RootHash(File file) booleanTOTorrent.isSimpleTorrentDisabled()TOTorrent.selectHybridHashType(int type) voidTOTorrent.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 elsewherevoidTOTorrent.serialiseToXMLFile(File file) This method will serialise a torrent using an XML encoding to a filevoidTOTorrent.setHashOverride(byte[] hash) voidTOTorrent.setPieces(byte[][] pieces) This method exists to support the temporary discarding of piece hashes to conserver memory.voidTOTorrent.setPrivate(boolean _private) Note - changing the private attribute CHANGES THE TORRENT HASHTOTorrent.setSimpleTorrentDisabled(boolean disabled) voidNote - 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 longprotected voidTOTorrentFileHasher.addPad(int pad_length) protected List<byte[]> TOTorrentFileHashTreeImpl.addPieceLayer(byte[] piece_layer) protected longTOTorrentCreateImpl.calculateNumberOfPieces(File _file, long _piece_length) protected longTOTorrentCreateImpl.calculateTotalFileSize(File file) protected voidTOTorrentFileImpl.checkComponents()protected voidTOTorrentDeserialiseImpl.construct(TOTorrentFactory.TorrentDataHolder bytes) protected voidTOTorrentDeserialiseImpl.construct(InputStream is) protected voidprotected voidTOTorrentCreateImpl.create(boolean skip_hashing) TOTorrentCreateV2Impl.create()TOTorrentCreatorImpl.create()TOTorrentCreatorImpl.create(boolean skip_hashing) private FileTOTorrentCreatorImpl.createLayoutMap()private intTOTorrentCreateImpl.createV1(boolean skip_hashing) private intTOTorrentCreateImpl.createV2(boolean skip_hashing) protected voidTOTorrentXMLDeserialiser.decodeInfo(SimpleXMLParserDocumentNode doc, TOTorrentImpl torrent) protected TOTorrentTOTorrentXMLDeserialiser.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()longTOTorrentCreatorImpl.getTorrentDataSizeFromFileOrDir()protected longTOTorrentCreateImpl.getTotalFileSize(File file) protected longTOTorrentCreateImpl.getTotalFileSizeSupport(File file, String root) static byte[]TOTorrentCreateV2Impl.getV2RootHash(File file) TOTorrentCreateV2Impl.handleFile(File file, String relative_path) booleanTOTorrentImpl.isSimpleTorrentDisabled()protected static voidTOTorrentCreateV2Impl.lashUpV1Info(TOTorrentImpl torrent) private static voidTOTorrentCreateV2Impl.lashUpV2Files(TOTorrentImpl torrent, List<TOTorrentFileImpl> files, LinkedList<byte[]> path, Map<String, Object> node, long piece_length, long[] torrent_offset, long[] pad_details) private intTOTorrentCreateImpl.processDir(TOTorrentFileHasher hasher, File dir, List<TOTorrentFileImpl> encoded, String base_name, String root, long[] torrent_offset) voidvoidprivate List<TOTorrentCreatorImpl.DescEntry> TOTorrentCreatorImpl.readDescriptor()protected byte[]TOTorrentXMLDeserialiser.readGenericBytes(SimpleXMLParserDocumentNode node) protected ListTOTorrentXMLDeserialiser.readGenericList(SimpleXMLParserDocumentNode node) protected LongTOTorrentXMLDeserialiser.readGenericLong(SimpleXMLParserDocumentNode node) protected MapTOTorrentXMLDeserialiser.readGenericMap(SimpleXMLParserDocumentNode node) protected TOTorrentXMLDeserialiser.mapEntryTOTorrentXMLDeserialiser.readGenericMapEntry(SimpleXMLParserDocumentNode node) protected ObjectTOTorrentXMLDeserialiser.readGenericValue(SimpleXMLParserDocumentNode node) protected byte[]TOTorrentXMLDeserialiser.readLocalisableString(SimpleXMLParserDocumentNode kid) TOTorrentImpl.selectHybridHashType(int type) voidTOTorrentImpl.serialiseToBEncodedFile(File output_file) protected byte[]TOTorrentImpl.serialiseToByteArray()protected voidTOTorrentXMLSerialiser.serialiseToFile(File file) TOTorrentImpl.serialiseToMap()voidTOTorrentImpl.serialiseToXMLFile(File file) protected voidTOTorrentImpl.setConstructed()protected voidTOTorrentImpl.setHashFromInfo(Map<String, Object> info) voidTOTorrentImpl.setHashOverride(byte[] hash) voidTOTorrentImpl.setPrivate(boolean _private_torrent) TOTorrentImpl.setSimpleTorrentDisabled(boolean disabled) voidprotected voidTOTorrentXMLSerialiser.writeInfo()protected voidTOTorrentXMLSerialiser.writeRoot()Constructors in com.biglybt.core.torrent.impl that throw TOTorrentExceptionModifierConstructorDescriptionprotectedTOTorrentCreateImpl(int _torrent_type, Map<String, File> _linkage_map, File _torrent_base, URL _announce_url, boolean _add_other_hashes, long _piece_length) protectedTOTorrentCreateImpl(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(File file) protectedTOTorrentFileImpl(TOTorrentImpl _torrent, int _index, long _torrent_offset, long _len, byte[][] _path_components) protectedTOTorrentFileImpl(TOTorrentImpl _torrent, int _index, long _torrent_offset, long _len, byte[][] _path_components, byte[][] _path_components_utf8) protectedTOTorrentFileImpl(TOTorrentImpl _torrent, int _index, long _torrent_offset, long _len, byte[][] _path_components, byte[][] _path_components_utf8, byte[] _v2_root_hash) protectedTOTorrentFileImpl(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()booleanTRHostExternalTorrent.isSimpleTorrentDisabled()TRHostExternalTorrent.selectHybridHashType(int type) voidTRHostExternalTorrent.serialiseToBEncodedFile(File file) TRHostExternalTorrent.serialiseToMap()voidTRHostExternalTorrent.serialiseToXMLFile(File file) voidTRHostExternalTorrent.setHashOverride(byte[] hash) voidTRHostExternalTorrent.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 StringTorrentUtils.exceptionToText(TOTorrentException e) Methods in com.biglybt.core.util that throw TOTorrentExceptionModifier and TypeMethodDescriptionstatic TOTorrentTorrentUtils.cloneTorrent(TOTorrent torrent) static voidTorrentUtils.copyToFile(TOTorrent torrent, File file) static voidbyte[]TorrentUtils.torrentDelegate.getFullHash(int type) byte[]TorrentUtils.torrentDelegate.getHash()TorrentUtils.torrentDelegate.getHashWrapper()byte[][]TorrentUtils.torrentDelegate.getPieces()static StringTorrentUtils.getTorrentFileName(TOTorrent torrent) static StringTorrentUtils.getTorrentFileName(TOTorrent torrent, boolean is_mandatory) booleanTorrentUtils.torrentDelegate.isSimpleTorrentDisabled()byte[][]TorrentUtils.ExtendedTorrent.peekPieces()byte[][]TorrentUtils.torrentDelegate.peekPieces()peeks the pieces, will return null if they are discardedstatic TorrentUtils.ExtendedTorrentTorrentUtils.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 TOTorrentTorrentUtils.readFromBEncodedInputStream(InputStream is) static TOTorrentTorrentUtils.readFromFile(File file, boolean create_delegate) static TOTorrentTorrentUtils.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) voidTorrentUtils.torrentDelegate.serialiseToBEncodedFile(File target_file) TorrentUtils.torrentDelegate.serialiseToMap()voidTorrentUtils.torrentDelegate.serialiseToXMLFile(File target_file) voidTorrentUtils.torrentDelegate.setHashOverride(byte[] hash) voidTorrentUtils.torrentDelegate.setPieces(byte[][] pieces) voidTorrentUtils.torrentDelegate.setPrivate(boolean _private) TorrentUtils.torrentDelegate.setSimpleTorrentDisabled(boolean disabled) voidstatic voidTorrentUtils.writeToFile(TOTorrent torrent) static voidTorrentUtils.writeToFile(TOTorrent torrent, boolean force_backup) static voidTorrentUtils.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