Packages that use Storage
Package
Description
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
The I2PSnark web interface (i2psnark.war): servlets and helpers for torrent management, file browsing and configuration.
Uses of Storage in org.klomp.snark
Fields in org.klomp.snark declared as StorageModifier and TypeFieldDescription(package private) StoragePeerCoordinator.storageWill be null when in magnet mode.private StorageSnark.storageStorage of the downloaded files.Methods in org.klomp.snark that return StorageModifier and TypeMethodDescriptionPeerCoordinator.getStorage()Returns the storage for this torrent.Snark.getStorage()The storage.Methods in org.klomp.snark with parameters of type StorageModifier and TypeMethodDescriptionvoidPeerCoordinator.setStorage(Storage stg) Store the storage after transition out of magnet mode.voidSnark.setWantedPieces(Storage storage) StorageListener callback to update the coordinator's wanted piece set.voidStorageListener.setWantedPieces(Storage storage) Resets the peer's wanted pieces table.voidSnark.storageAllChecked(Storage storage) StorageListener callback called when all pieces have been checked.voidStorageListener.storageAllChecked(Storage storage) Called when all pieces in the storage have been checked.voidSnark.storageAllocated(Storage storage, long length) No-op; deliberately empty.voidStorageListener.storageAllocated(Storage storage, long length) Called to indicate that length bytes have been allocated.voidSnark.storageChecked(Storage storage, int num, boolean checked) StorageListener callback called when a piece check completes.voidStorageListener.storageChecked(Storage storage, int num, boolean checked) Called when storage is being checked and the num piece of that total pieces has been checked.voidSnark.storageCompleted(Storage storage) StorageListener callback called when the torrent has completed.voidStorageListener.storageCompleted(Storage storage) Called the one time when the data is completely received and checked.voidSnark.storageCreateFile(Storage storage, String name, long length) StorageListener no-op.voidStorageListener.storageCreateFile(Storage storage, String name, long length) Called when the storage creates a new file of a given length.Constructors in org.klomp.snark with parameters of type StorageModifierConstructorDescriptionPeerCoordinator(I2PSnarkUtil util, byte[] id, byte[] infohash, MetaInfo metainfo, Storage storage, CoordinatorListener listener, Snark torrent, BandwidthListener bwl) Create a peer coordinator for the torrent.Uses of Storage in org.klomp.snark.web
Fields in org.klomp.snark.web declared as StorageModifier and TypeFieldDescription(package private) final StorageI2PSnarkServlet.FileRowContext.storageThe torrent's storage, null for magnet links.Methods in org.klomp.snark.web with parameters of type StorageModifier and TypeMethodDescriptionprivate voidI2PSnarkServlet.getPlaylist(StringBuilder buf, List<Sorters.FileAndIndex> fileList, String reqURL, int sort, Storage storage, long[] remainingArray) Append playlist entries in m3u format to buf.private booleanI2PSnarkServlet.hasCompleteAudio(Storage storage, long[] remainingArray, String prefix) Whether any complete audio file exists at or below the browsed directory.private static List<Sorters.FileAndIndex> I2PSnarkServlet.listFileAndIndex(File dir, Storage storage, long[] remainingArray) List the files in a directory and wrap each in a FileAndIndex with the given remaining array.private static FileI2PSnarkServlet.resolveTorrentPath(Storage storage, String pathInTorrent) The on-disk location of a path within a torrent.(package private) static List<Sorters.FileAndIndex> I2PSnarkServlet.wrapFileList(File[] ls, Storage storage, long[] remainingArray, long[] previewArray, boolean skipPaddingDirs) Wraps a raw directory listing in Sorters.FileAndIndex entries carrying the precomputed per-file remaining/preview arrays, optionally hiding legacy padding directories.Constructors in org.klomp.snark.web with parameters of type StorageModifierConstructorDescriptionFileAndIndex(File file, Storage storage, long[] remainingArray) Create a file/index entry.FileAndIndex(File file, Storage storage, long[] remainingArray, long[] previewArray) Create a file/index entry with preview lengths.(package private)FileRowContext(String decodedBase, Storage storage, boolean showPriority, boolean isTopLevel) Captures the torrent state needed to render one file row.