org.jcoderz.commons.connector.file
Class FsConnectionUtil

java.lang.Object
  extended by org.jcoderz.commons.connector.file.FsConnectionUtil

public final class FsConnectionUtil
extends Object

This class provides utility functions for the file system connector.

Author:
Michael Griffel

Field Summary
static String FILE_SYSTEM_CONNECTOR_EIS_NAME
          The JNDI name of the file system connector.
static String FILE_SYSTEM_CONNECTOR_JNDI_NAME
          The JNDI name of the file system connector.
 
Method Summary
static void close(FsConnection in)
          Closes the file system connection (safe).
static FsConnection getFileSystemConnection()
          Returns a file system connection.
static FsConnection getFileSystemConnection(Properties props)
          Returns a file system connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_SYSTEM_CONNECTOR_JNDI_NAME

public static final String FILE_SYSTEM_CONNECTOR_JNDI_NAME
The JNDI name of the file system connector.

See Also:
Constant Field Values

FILE_SYSTEM_CONNECTOR_EIS_NAME

public static final String FILE_SYSTEM_CONNECTOR_EIS_NAME
The JNDI name of the file system connector.

See Also:
Constant Field Values
Method Detail

getFileSystemConnection

public static FsConnection getFileSystemConnection()
Returns a file system connection.

Returns:
a file system connection.

getFileSystemConnection

public static FsConnection getFileSystemConnection(Properties props)
Returns a file system connection.

Parameters:
props - Connection properties to use
Returns:
a file system connection.

close

public static void close(FsConnection in)
Closes the file system connection (safe). This method tries to close the given file system connection and if an ResourceException occurs a message with the level Level.FINE is logged. It's safe to pass a null reference for the argument.

Parameters:
in - the file system connection that should be closed.


Copyright 2007 The jCoderZ Project.