SpecificSUNSecuredProvider (PJIRC project)
Algne fail: vana_veeb/pjirc/doc/javadoc/irc/security/prv/SpecificSUNSecuredProvider.html.
========== START OF NAVBAR ==========
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
======== START OF CLASS DATA ========
irc.security.prv
Class SpecificSUNSecuredProvider
java.lang.Object | +--irc.security.prv.SpecificSUNSecuredProvider
- All Implemented Interfaces:
- SecuredProvider
- public class SpecificSUNSecuredProvider
- extends java.lang.Object
- implements SecuredProvider
- extends java.lang.Object
Specific secured provider to use with SUN JVM.
| Constructor Summary | |
SpecificSUNSecuredProvider()
|
|
| Method Summary | |
java.awt.FileDialog |
getFileDialog(java.awt.Frame top,
java.lang.String title,
int type)
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
SpecificSUNSecuredProvider
public SpecificSUNSecuredProvider()
| Method Detail |
getSocket
public java.net.Socket getSocket(java.lang.String host,
int port)
throws java.net.UnknownHostException,
java.io.IOException
- Description copied from interface:
SecuredProvider - Get a new Socket.
- Specified by:
getSocketin interfaceSecuredProvider
- Parameters:
host- server host.port- server port.- Returns:
- a new Socket.
- Throws:
java.io.IOException- if an error occurs.java.net.UnknownHostException- is host is not found.
getServerSocket
public java.net.ServerSocket getServerSocket(int port)
throws java.io.IOException
- Description copied from interface:
SecuredProvider - Get a new ServerSocket.
- Specified by:
getServerSocketin interfaceSecuredProvider
- Parameters:
port- local port.- Throws:
java.io.IOException- if an error occurs.
getFileInputStream
public java.io.FileInputStream getFileInputStream(java.io.File file)
throws java.io.IOException
- Description copied from interface:
SecuredProvider - Get an FileInputStream from a local file.
- Specified by:
getFileInputStreamin interfaceSecuredProvider
- Parameters:
file- the local file.- Returns:
- an FileInputStream from the file.
- Throws:
java.io.IOException- if an error occurs.
getFileSize
public int getFileSize(java.io.File file)
- Description copied from interface:
SecuredProvider - Get the file size.
- Specified by:
getFileSizein interfaceSecuredProvider
- Parameters:
file- the file to get size.- Returns:
- the file size, of a negative value if not able.
getFileOutputStream
public java.io.FileOutputStream getFileOutputStream(java.io.File file)
throws java.io.IOException
- Description copied from interface:
SecuredProvider - Get an FileOutputStream to a local file.
- Specified by:
getFileOutputStreamin interfaceSecuredProvider
- Parameters:
file- the local file.- Returns:
- an FileOutputStream from the file.
- Throws:
java.io.IOException- if an error occurs.
getFileDialog
public java.awt.FileDialog getFileDialog(java.awt.Frame top,
java.lang.String title,
int type)
getLoadFile
public java.io.File getLoadFile(java.lang.String title)
- Description copied from interface:
SecuredProvider - Open a load file dialog with the given title and return the user choice.
- Specified by:
getLoadFilein interfaceSecuredProvider
- Parameters:
title- dialog title.- Returns:
- user choice.
getSaveFile
public java.io.File getSaveFile(java.lang.String title)
- Description copied from interface:
SecuredProvider - Open a save file dialog with the given title and return the user choice.
- Specified by:
getSaveFilein interfaceSecuredProvider
- Parameters:
title- dialog title.- Returns:
- user choice.
getLocalHost
public java.net.InetAddress getLocalHost()
throws java.net.UnknownHostException
- Description copied from interface:
SecuredProvider - Get the local host address.
- Specified by:
getLocalHostin interfaceSecuredProvider
- Returns:
- local host address.
- Throws:
java.net.UnknownHostException- if error occurs.
resolve
public java.lang.String resolve(java.net.InetAddress addr)
- Description copied from interface:
SecuredProvider - Perform a dns resolve of the given address.
- Specified by:
resolvein interfaceSecuredProvider
- Parameters:
addr- address to resolve.- Returns:
- resolved address.
tryProvider
public boolean tryProvider()
- Description copied from interface:
SecuredProvider - Try to use this provider. Return false if this provider is not able to perform its
task.
- Specified by:
tryProviderin interfaceSecuredProvider
- Returns:
- true if this provider can be used, false otherwise.
getName
public java.lang.String getName()
- Description copied from interface:
SecuredProvider - Get this provider's name.
- Specified by:
getNamein interfaceSecuredProvider
- Returns:
- the provder name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
