com.japisoft.framework.toolkit
Class Toolkit
java.lang.Object
com.japisoft.framework.toolkit.Toolkit
- public class Toolkit
- extends java.lang.Object
- Version:
- 1.0
- Author:
- (c) 2003 JAPISOFT
|
Method Summary |
static java.lang.String |
getContentFromFileName(java.lang.String fileName,
java.lang.String encoding)
|
static java.lang.String |
getContentFromInputStream(java.io.InputStream input,
java.lang.String encoding)
|
static java.lang.String |
getContentFromURL(java.net.URL url)
|
static java.lang.String |
getPathForObject(java.lang.String resource)
Retreive an initial resource location using this resource name |
static java.io.Reader |
getReaderForFile(java.io.File fileName,
java.lang.String encoding)
|
static java.io.Writer |
getWriterForFile(java.io.File fileName,
java.lang.String encoding)
|
static java.lang.String |
toURL(java.io.File f)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILE_ENCODING
public static java.lang.String[] FILE_ENCODING
Toolkit
public Toolkit()
getReaderForFile
public static java.io.Reader getReaderForFile(java.io.File fileName,
java.lang.String encoding)
throws java.io.IOException
- Throws:
java.io.IOException
getWriterForFile
public static java.io.Writer getWriterForFile(java.io.File fileName,
java.lang.String encoding)
throws java.io.IOException
- Throws:
java.io.IOException
getContentFromFileName
public static java.lang.String getContentFromFileName(java.lang.String fileName,
java.lang.String encoding)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
getContentFromInputStream
public static java.lang.String getContentFromInputStream(java.io.InputStream input,
java.lang.String encoding)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
getPathForObject
public static java.lang.String getPathForObject(java.lang.String resource)
- Retreive an initial resource location using this resource name
toURL
public static java.lang.String toURL(java.io.File f)
getContentFromURL
public static java.lang.String getContentFromURL(java.net.URL url)
throws java.lang.Throwable
- Throws:
java.lang.Throwable