|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--irc.security.SecurityProvider
The security provider. Provides an interface for accessing protected data or operation.
Constructor Summary | |
SecurityProvider()
Create a new SecurityProvider. |
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 |
getProviderName()
Get the used provider 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SecurityProvider()
Method Detail |
public java.lang.String getProviderName()
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |