|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.plugin.opennap.util.OpenNapFileHelper
public class OpenNapFileHelper
Constructor Summary | |
---|---|
OpenNapFileHelper()
|
Method Summary | |
---|---|
static void |
append(java.io.File outFile,
java.io.File inFile,
long offset)
Appends inFile to outFile starting at
offset off inFile |
static MetaInfoFile |
getSharedFile(java.lang.String filename)
Retrieves repository file. |
static MetaInfoFile |
getSharedFileByIndex(java.lang.String request)
Extracts index and filename from OpenNap specific shared filename and return file if it's a valid Shared entry. |
static java.lang.String |
getShareString(int index,
java.io.File file)
Converts the system-dependent pathname to the OpenNap format which uses '\' as separator. |
static boolean |
isShared(java.io.File file)
|
static java.lang.String |
mapFilename(java.lang.String filename)
Replaces all characters that confuse OpenNap servers in filename by non confusing characters. |
static void |
match(java.io.File f1,
java.io.File f2,
int byteCount)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpenNapFileHelper()
Method Detail |
---|
public static java.lang.String getShareString(int index, java.io.File file)
public static MetaInfoFile getSharedFileByIndex(java.lang.String request)
public static MetaInfoFile getSharedFile(java.lang.String filename)
public static boolean isShared(java.io.File file)
Library.isShared(File)
public static java.lang.String mapFilename(java.lang.String filename)
public static void append(java.io.File outFile, java.io.File inFile, long offset) throws java.io.IOException
inFile
to outFile
starting at
offset
off inFile
java.io.IOException
public static void match(java.io.File f1, java.io.File f2, int byteCount) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |