This commit is contained in:
Ziver Koc 2010-08-13 22:32:19 +00:00
parent 02638fcb41
commit 3d4b05c697
2 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@ import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import zutil.FileFinder; import zutil.FileUtil;
public class Torrent { public class Torrent {
// Name of the torrent // Name of the torrent
@ -29,7 +29,7 @@ public class Torrent {
private boolean is_private; private boolean is_private;
public Torrent(File torrent) throws IOException{ public Torrent(File torrent) throws IOException{
this(FileFinder.getFileContent( torrent )); this(FileUtil.getFileContent( torrent ));
} }
public Torrent(String data){ public Torrent(String data){

View file

@ -5,7 +5,7 @@ import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;
import java.util.LinkedList; import java.util.LinkedList;
import zutil.FileFinder; import zutil.FileUtil;
import zutil.MultiPrintStream; import zutil.MultiPrintStream;
/** /**
@ -19,7 +19,7 @@ public class TorrentParser {
*/ */
public static void main(String[] args){ public static void main(String[] args){
try { 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)); MultiPrintStream.out.dump(TorrentParser.decode(tmp));
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {