kfmes.natelib.ftp
Class AbstractTransfer
java.lang.Object
java.lang.Thread
kfmes.natelib.ftp.AbstractTransfer
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- FileRecver, FileSender
public abstract class AbstractTransfer
- extends java.lang.Thread
파일전송에 쓰이는 Thread
- Version:
- $Id: AbstractTransfer.java,v 1.12 2007/11/19 10:13:35 kfmes Exp $
- Author:
- kfmes(KIM Ga-Hyeon, jateon@kfmes.com, http://jateon.kfmes.com )
Nested classes/interfaces inherited from class java.lang.Thread |
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
socket
protected java.net.Socket socket
trId
protected int trId
ref
public NateFriend ref
nate
protected NateonMessenger nate
mgr
protected NateFileManager mgr
isLive
public boolean isLive
in
protected java.io.InputStream in
out
protected java.io.OutputStream out
list
protected java.util.ArrayList<NateFile> list
stats
protected java.util.ArrayList<java.lang.Integer> stats
cookie
protected java.lang.String cookie
host
protected java.lang.String host
port
protected int port
isFR
protected boolean isFR
offset
protected long[] offset
buf
protected byte[] buf
frCookie
protected java.lang.String frCookie
AbstractTransfer
public AbstractTransfer()
close
protected void close()
stopFileTransfer
public void stopFileTransfer()
readLine
protected java.lang.String readLine()
throws java.io.IOException
- Throws:
java.io.IOException
getCurrentFileSize
public long getCurrentFileSize(int i)
- 현재 실제로 수신된 byte 수를 반환한다.
getCurrentPercent
public long getCurrentPercent(int i)
sendMessage
protected void sendMessage(java.lang.String header,
java.lang.String body)
throws java.io.IOException
- Throws:
java.io.IOException
getFileCount
public int getFileCount()
getFile
protected NateFile getFile(NateFile file)
addFile
public void addFile(NateFile file)
addFileList
public void addFileList(java.util.ArrayList<NateFile> srclist)
removeFile
public void removeFile(NateFile file)
getCookie
public java.lang.String getCookie()
getFileList
public java.util.ArrayList<NateFile> getFileList()
getNateFile
public NateFile getNateFile()
set
public void set(NateonMessenger nate,
NateFriend ref,
java.lang.String cookie)
set
public void set(NateonMessenger nate,
NateFriend ref,
java.lang.String cookie,
int port)
setNetwork
public void setNetwork(java.lang.String host,
int port)
setNetwork
public void setNetwork(java.lang.String string)
setRef
public void setRef(NateFriend ref)
setCookie
public void setCookie(java.lang.String cookie)
setFR
public void setFR()
setFR
public void setFR(java.lang.String frCookie)
getFileStat
public int getFileStat(int i)
setFileStat
public void setFileStat(int idx,
int mode)