|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Fields inherited from interface gnu.hylafax.ClientProtocol |
NOTIFY_ALL, NOTIFY_DONE, NOTIFY_NONE, NOTIFY_REQUEUE, TZONE_GMT, TZONE_LOCAL |
| Method Summary | |
Job |
createJob()
create a new job in the server |
void |
delete(Job job)
delete the given done or suspended job |
void |
get(java.lang.String path,
java.io.OutputStream out)
GET the named file, FTP style. |
Job |
getJob(long id)
get a Job instance for the given job id |
java.util.Vector |
getList()
get a long-style listing of files in the current directory. |
java.util.Vector |
getList(java.lang.String path)
get a long-style listing of files in the given directory. |
java.util.Vector |
getNameList()
get name list of files in the current directory. |
java.util.Vector |
getNameList(java.lang.String path)
get name list of files in the given directory. |
boolean |
getPassive()
check whether passive transfers have been enabled |
void |
interrupt(Job job)
interrupt the given job |
void |
kill(Job job)
kill the given job |
void |
mode(char mode)
set the transfer mode. |
java.lang.String |
put(java.io.InputStream in)
put a file with a unique name. |
void |
put(java.io.InputStream in,
java.lang.String pathname)
store a file. |
java.lang.String |
putTemporary(java.io.InputStream data)
put a temp file, the data is stored in a uniquely named file on the server. |
void |
setDebug(boolean value)
Sets the ConsoleLogger's debug output. |
void |
setPassive(boolean passive)
enable or disable passive transfers |
void |
submit(Job job)
submit the given job to the scheduler |
void |
suspend(Job job)
suspend the given job from the scheduler |
void |
wait(Job job)
wait for the given job to complete |
| Methods inherited from interface gnu.hylafax.ClientProtocol |
admin, filefmt, filefmt, idle, idle, jdele, jintr, jkill, jnew, job, job, jobfmt, jobfmt, jparm, jparm, jparm, jparm, jparm, jrest, jsubm, jsubm, jsusp, jwait, mdmfmt, mdmfmt, noop, open, open, pass, quit, rcvfmt, rcvfmt, size, stot, tzone, user, vrfy |
| Method Detail |
public Job createJob()
throws ServerResponseException,
java.io.IOException
ServerResponseException - java.io.IOException - an IO error occurred while communicating with the
server
public void delete(Job job)
throws ServerResponseException,
java.io.IOException
job - the (done or suspended) job to deleteServerResponseException - java.io.IOException - an IO error occurred while communicating with the
server
public void get(java.lang.String path,
java.io.OutputStream out)
throws java.io.IOException,
java.io.FileNotFoundException,
ServerResponseException
path - the name of the file to GET. This can be a full or partial
path.out - the OutputStream to write the file data tojava.io.IOException - an IO error occurredServerResponseException - the server reported an errorjava.io.FileNotFoundException - the given path does not exist
public Job getJob(long id)
throws ServerResponseException,
java.io.IOException
id - the id of the job to getServerResponseException - java.io.IOException - an IO error occurred while communicating with the
server
public java.util.Vector getList()
throws java.io.IOException,
java.io.FileNotFoundException,
ServerResponseException
java.io.IOException - an IO error occurredjava.io.FileNotFoundException - the "." path doesn't existServerResponseException - the server reported an error
public java.util.Vector getList(java.lang.String path)
throws java.io.IOException,
java.io.FileNotFoundException,
ServerResponseException
path - the path that we're interested in finding the contents ofjava.io.IOException - an IO error occurredjava.io.FileNotFoundException - the given path doesn't existServerResponseException - the server reported an error
public java.util.Vector getNameList()
throws java.io.IOException,
ServerResponseException,
java.io.FileNotFoundException
java.io.IOException - an IO error occurredServerResponseException - the server reported an errorjava.io.FileNotFoundException - the requested path does not exist
public java.util.Vector getNameList(java.lang.String path)
throws java.io.IOException,
ServerResponseException,
java.io.FileNotFoundException
path - the path of the directory that we want the name list ofjava.io.IOException - an IO error occurredServerResponseException - the server reported an errorjava.io.FileNotFoundException - the requested path does not existpublic boolean getPassive()
public void interrupt(Job job)
throws ServerResponseException,
java.io.IOException
job - the job to interruptServerResponseException - java.io.IOException - an IO error occurred while communicating with the
server
public void kill(Job job)
throws ServerResponseException,
java.io.IOException
job - the job to killServerResponseException - java.io.IOException - an IO error occurred while communicating with the
server
public void mode(char mode)
throws java.io.IOException,
ServerResponseException
mode - the new mode settingjava.io.IOException - an io error occurred talking to the serverServerResponseException - the server replied with an error code
public java.lang.String put(java.io.InputStream in)
throws java.io.IOException,
ServerResponseException
java.io.IOException - a socket IO error occurredServerResponseException - the server responded with an error
code
public void put(java.io.InputStream in,
java.lang.String pathname)
throws java.io.IOException,
ServerResponseException
pathname - name of file to store on server (where to put the file on
the server)java.io.IOException - a socket IO error occurredServerResponseException - the server responded with an error
public java.lang.String putTemporary(java.io.InputStream data)
throws java.io.IOException,
ServerResponseException
java.io.IOException - io error occurred talking to the serverServerResponseException - server replied with error codepublic void setDebug(boolean value)
value - new debug flag valuepublic void setPassive(boolean passive)
passive - indicates whether passive transfers should be used
public void submit(Job job)
throws ServerResponseException,
java.io.IOException
job - the Job to submitServerResponseException - java.io.IOException - an IO error occurred while communicating with the
server
public void suspend(Job job)
throws ServerResponseException,
java.io.IOException
job - the Job to suspendServerResponseException - java.io.IOException - an IO error occurred while communicating with the
server
public void wait(Job job)
throws ServerResponseException,
java.io.IOException
job - the job to wait forServerResponseException - java.io.IOException - an IO error occurred while communicating with the
server
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||