|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--rath.msnm.ftp.VolatileDownloader
파일을 수신요청을 허락했을때, 실제로 파일을 다운로드하는 클래스이다.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Method Summary | |
void |
close()
|
protected void |
fireError(Throwable e)
파일 전송도중 예기치 못한 예외가 발생하였을때, 불려진다. |
protected void |
fireStart()
|
String |
getAuthCookie()
신원확인을 위해 전송할 목적으로 설정된 인증쿠키값을 얻어온다. |
int |
getCommitPercent()
실제로 송/수신된 바이트 크기를 얻어온다. |
String |
getCookie()
이 파일전송 세션에 대한 쿠키값을 얻어온다. |
int |
getCurrentFileSize()
현재 실제로 수신된 byte 수를 반환한다. |
File |
getFile()
수신될 파일 객체를 반환한다. |
void |
getFileContent()
|
String |
getFilename()
송/수신되고 있는 파일의 이름을 얻어온다. |
int |
getFileSize()
받을 파일의 전체 크기를 얻어온다. |
String |
getHostAddress()
송신측 Host 주소를 얻어온다. |
static VolatileDownloader |
getInstance(MSNMessenger msn,
File toReceive,
MimeMessage msg)
VolatileDownloader의 인스턴스를 생성한다. |
int |
getPort()
송신측 port 번호를 얻어온다. |
protected void |
makeConnection()
서버에 접속하고 스트림들을 생성한다. |
void |
processMessage(String header,
String body)
|
void |
run()
Thread main loop 처리 부분이다. |
void |
sendMessage(String header)
|
void |
sendMessage(String header,
String body)
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
| Method Detail |
public static VolatileDownloader getInstance(MSNMessenger msn,
File toReceive,
MimeMessage msg)
public String getHostAddress()
public int getPort()
public String getAuthCookie()
public String getCookie()
public File getFile()
public String getFilename()
VolatileTransfer
getFilename in interface VolatileTransferpublic int getCurrentFileSize()
public int getCommitPercent()
VolatileTransfer
getCommitPercent in interface VolatileTransferpublic int getFileSize()
public final void run()
run in interface Runnablerun in class Thread
public void processMessage(String header,
String body)
throws Throwable
Throwable
public void sendMessage(String header)
throws IOException
IOException
public void sendMessage(String header,
String body)
throws IOException
IOException
public void getFileContent()
throws IOException
IOExceptionpublic void close()
protected void fireStart()
protected void fireError(Throwable e)
protected void makeConnection()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||