public class FileInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
Object |
fileLock
A lock to prevent concurrent writes to a single file
|
| Constructor and Description |
|---|
FileInfo(long filesize,
long firstByteOffset,
File file,
int pieceCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
RandomAccessFile |
getFileAccess()
Gets the handle to write/read from this file.
|
String |
getFileName()
Gets the name of this file.
|
long |
getFirstByteOffset()
The offset of the first byte as if the entire torrent is a single file
|
int |
getPieceCount()
The amount of pieces which contain a part of data for this file
|
long |
getSize()
Gets the size of this file
|
int |
hashCode() |
String |
toString() |
public final Object fileLock
public FileInfo(long filesize,
long firstByteOffset,
File file,
int pieceCount)
public int getPieceCount()
public long getSize()
public long getFirstByteOffset()
public String getFileName()
public RandomAccessFile getFileAccess()
Copyright © 2016. All rights reserved.