|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.net.TcpSocketClient
com.partnersoft.net.yonder.YonderClient
public class YonderClient
Raw client for the Yonder remote file server. You should probably use YonderVfs for general purposes.
Copyright 2004-2007 Partner Software, Inc.
| Constructor Summary | |
|---|---|
YonderClient(java.lang.String serverName)
|
|
| Method Summary | |
|---|---|
void |
close(int fileId)
Closes the remote file with the given ID. |
void |
connect(boolean resolveHostName)
Connect to the YonderServer. |
void |
disconnect()
Disconnect from the YonderServer. |
long |
getLength(int fileId)
|
YonderFileInfo |
infoFor(Path path)
Requests information about a file. |
YonderFileInfo[] |
listFilesIn(Path dirPath)
List contents of remote directory. |
void |
makeDirectory(Path path)
|
int |
open(Path path,
java.lang.String mode)
Opens the file at the given path, returning an integer ID that will be used to refer to it henceforth. |
int |
read(int fileId,
long position,
byte[] bytes,
int offset,
int length)
Reads from the given location in the given open file. |
void |
remove(Path path)
|
void |
setLength(int fileId,
long newLength)
|
void |
write(int fileId,
long position,
byte[] bytes,
int offset,
int length)
Writes to the given location in the given open file. |
| Methods inherited from class com.partnersoft.net.TcpSocketClient |
|---|
connect, getInputStream, getName, getOutputStream, getServerName, getServerPortNumber, getSocket |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public YonderClient(java.lang.String serverName)
| Method Detail |
|---|
public void connect(boolean resolveHostName)
throws java.io.IOException
connect in class TcpSocketClientjava.io.IOException
public void disconnect()
throws java.io.IOException
disconnect in class TcpSocketClientjava.io.IOException
public YonderFileInfo infoFor(Path path)
throws java.io.IOException
java.io.IOException
public YonderFileInfo[] listFilesIn(Path dirPath)
throws java.io.IOException
java.io.IOException
public void makeDirectory(Path path)
throws java.io.IOException
java.io.IOException
public void remove(Path path)
throws java.io.IOException
java.io.IOException
public int open(Path path,
java.lang.String mode)
throws java.io.IOException
java.io.IOException
public void close(int fileId)
throws java.io.IOException
fileId -
java.io.IOException
public int read(int fileId,
long position,
byte[] bytes,
int offset,
int length)
throws java.io.IOException
fileId - position -
java.io.IOException
public void write(int fileId,
long position,
byte[] bytes,
int offset,
int length)
throws java.io.IOException
java.io.IOException
public void setLength(int fileId,
long newLength)
throws java.io.IOException
java.io.IOException
public long getLength(int fileId)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||