org.apache.avalon.excalibur.source
Class SourceUtil
java.lang.Object
|
+--org.apache.avalon.excalibur.source.SourceUtil
- public final class SourceUtil
- extends java.lang.Object
Utility class for source resolving.
- Version:
- CVS $Revision: 1.4 $ $Date: 2002/01/04 13:25:36 $
- Author:
- Carsten Ziegeler
Method Summary |
static java.lang.String |
encode(java.lang.String s)
Translates a string into x-www-form-urlencoded format. |
static java.lang.String |
encodeBASE64(byte[] octetString)
BASE 64 encoding. |
static java.lang.String |
encodeBASE64(java.lang.String s)
BASE 64 encoding. |
static org.xml.sax.InputSource |
getInputSource(Source source)
Return a new InputSource object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceUtil
public SourceUtil()
encodeBASE64
public static java.lang.String encodeBASE64(java.lang.String s)
- BASE 64 encoding.
See also RFC 1421
encodeBASE64
public static java.lang.String encodeBASE64(byte[] octetString)
- BASE 64 encoding.
See also RFC 1421
encode
public static java.lang.String encode(java.lang.String s)
- Translates a string into
x-www-form-urlencoded
format.
- Parameters:
s
- String
to be translated.- Returns:
- the translated
String
.
getInputSource
public static org.xml.sax.InputSource getInputSource(Source source)
throws java.io.IOException
- Return a new
InputSource
object
- Throws:
java.io.IOException
- if I/O error occured.
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.