Class PieceMapperImpl.fileInfo
- java.lang.Object
-
- com.biglybt.core.disk.impl.piecemapper.impl.PieceMapperImpl.fileInfo
-
- All Implemented Interfaces:
DMPieceMapperFile
- Enclosing class:
- PieceMapperImpl
protected static class PieceMapperImpl.fileInfo extends java.lang.Object implements DMPieceMapperFile
-
-
Field Summary
Fields Modifier and Type Field Description private DiskManagerFileInfo
file
private java.lang.String
name
private java.lang.String
relative_path
private TOTorrentFile
torrent_file
-
Constructor Summary
Constructors Constructor Description fileInfo(TOTorrentFile _torrent_file, java.lang.String _relative_path, java.lang.String _name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiskManagerFileInfo
getFileInfo()
long
getLength()
java.lang.String
getRelativeDataPath()
TOTorrentFile
getTorrentFile()
void
setFileInfo(DiskManagerFileInfo _file)
-
-
-
Field Detail
-
file
private DiskManagerFileInfo file
-
torrent_file
private final TOTorrentFile torrent_file
-
relative_path
private final java.lang.String relative_path
-
name
private final java.lang.String name
-
-
Constructor Detail
-
fileInfo
public fileInfo(TOTorrentFile _torrent_file, java.lang.String _relative_path, java.lang.String _name)
- Parameters:
_relative_path
- Blank or Relative Path with trailing File.separator
-
-
Method Detail
-
getLength
public long getLength()
- Specified by:
getLength
in interfaceDMPieceMapperFile
-
getRelativeDataPath
public java.lang.String getRelativeDataPath()
- Specified by:
getRelativeDataPath
in interfaceDMPieceMapperFile
- Returns:
- Relative file location and file name
-
getTorrentFile
public TOTorrentFile getTorrentFile()
- Specified by:
getTorrentFile
in interfaceDMPieceMapperFile
-
getFileInfo
public DiskManagerFileInfo getFileInfo()
- Specified by:
getFileInfo
in interfaceDMPieceMapperFile
-
setFileInfo
public void setFileInfo(DiskManagerFileInfo _file)
- Specified by:
setFileInfo
in interfaceDMPieceMapperFile
-
-