|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provide methods for accessing protected operations.
| Method Summary | |
java.io.FileInputStream |
getFileInputStream(java.io.File file)
Get an FileInputStream from a local file. |
java.io.FileOutputStream |
getFileOutputStream(java.io.File file)
Get an FileOutputStream to a local file. |
int |
getFileSize(java.io.File file)
Get the file size. |
java.io.File |
getLoadFile(java.lang.String title)
Open a load file dialog with the given title and return the user choice. |
java.net.InetAddress |
getLocalHost()
Get the local host address. |
java.lang.String |
getName()
Get this provider's name. |
java.io.File |
getSaveFile(java.lang.String title)
Open a save file dialog with the given title and return the user choice. |
java.net.ServerSocket |
getServerSocket(int port)
Get a new ServerSocket. |
java.net.Socket |
getSocket(java.lang.String host,
int port)
Get a new Socket. |
java.lang.String |
resolve(java.net.InetAddress addr)
Perform a dns resolve of the given address. |
boolean |
tryProvider()
Try to use this provider. |
| Method Detail |
public java.net.Socket getSocket(java.lang.String host,
int port)
throws java.net.UnknownHostException,
java.io.IOException
host - server host.port - server port.
java.net.UnknownHostException - is host is not found.
java.io.IOException - if an error occurs.
public java.net.ServerSocket getServerSocket(int port)
throws java.io.IOException
port - local port.
java.io.IOException - if an error occurs.
public java.io.FileInputStream getFileInputStream(java.io.File file)
throws java.io.IOException
file - the local file.
java.io.IOException - if an error occurs.
public java.io.FileOutputStream getFileOutputStream(java.io.File file)
throws java.io.IOException
file - the local file.
java.io.IOException - if an error occurs.public int getFileSize(java.io.File file)
file - the file to get size.
public java.io.File getLoadFile(java.lang.String title)
title - dialog title.
public java.io.File getSaveFile(java.lang.String title)
title - dialog title.
public java.net.InetAddress getLocalHost()
throws java.net.UnknownHostException
java.net.UnknownHostException - if error occurs.public java.lang.String resolve(java.net.InetAddress addr)
addr - address to resolve.
public boolean tryProvider()
public java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||