This commit is contained in:
parent
02638fcb41
commit
3d4b05c697
2 changed files with 4 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ import java.io.IOException;
|
|||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
|
||||
import zutil.FileFinder;
|
||||
import zutil.FileUtil;
|
||||
|
||||
public class Torrent {
|
||||
// Name of the torrent
|
||||
|
|
@ -29,7 +29,7 @@ public class Torrent {
|
|||
private boolean is_private;
|
||||
|
||||
public Torrent(File torrent) throws IOException{
|
||||
this(FileFinder.getFileContent( torrent ));
|
||||
this(FileUtil.getFileContent( torrent ));
|
||||
}
|
||||
|
||||
public Torrent(String data){
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import java.io.IOException;
|
|||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
|
||||
import zutil.FileFinder;
|
||||
import zutil.FileUtil;
|
||||
import zutil.MultiPrintStream;
|
||||
|
||||
/**
|
||||
|
|
@ -19,7 +19,7 @@ public class TorrentParser {
|
|||
*/
|
||||
public static void main(String[] args){
|
||||
try {
|
||||
String tmp = FileFinder.getFileContent(FileFinder.find("C:\\Users\\Ziver\\Desktop\\test.torrent"));
|
||||
String tmp = FileUtil.getFileContent(FileUtil.find("C:\\Users\\Ziver\\Desktop\\test.torrent"));
|
||||
MultiPrintStream.out.dump(TorrentParser.decode(tmp));
|
||||
|
||||
} catch (FileNotFoundException e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue