* make serializer friendly

This commit is contained in:
Reinhard Pointner 2012-12-12 10:27:26 +00:00
parent cebcb3f92f
commit b81845e277
1 changed files with 13 additions and 9 deletions

View File

@ -17,17 +17,21 @@ import java.util.Map;
public class Torrent {
private final String name;
private final String encoding;
private final String createdBy;
private final String announce;
private final String comment;
private final Long creationDate;
private final Long pieceLength;
private String name;
private String encoding;
private String createdBy;
private String announce;
private String comment;
private Long creationDate;
private Long pieceLength;
private final List<Entry> files;
private List<Entry> files;
private boolean singleFileTorrent;
private final boolean singleFileTorrent;
protected Torrent() {
// used by serializer
}
public Torrent(File torrent) throws IOException {