1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

Support Convert base64

- Use commons-codec for base64 encoding support
- Add 3rd party reame for licenses
- add apache commons-codec.jar
This commit is contained in:
Kevin Glynn 2010-06-07 12:06:55 -05:00
parent 0a5d22e8dd
commit 0532c9dc6f
6 changed files with 251 additions and 203 deletions

View File

@ -2,6 +2,7 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/commons-lang-2.4.jar"/>
<classpathentry exported="true" kind="lib" path="lib/commons-lang-2.4.jar"/>
<classpathentry exported="true" kind="lib" path="lib/commons-codec-1.4.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@ -14,6 +14,34 @@
</Property>
</Properties>
<Methods>
<Method>
<Return>System.Byte[]</Return>
<Name>FromBase64String</Name>
<Params>
<Param>
<Type>System.String</Type>
<Name>s</Name>
</Param>
</Params>
<Imports>
<Import>org.apache.commons.codec.binary.Base64</Import>
</Imports>
<Java>Base64.decodeBase64(${s})</Java>
</Method>
<Method>
<Return>System.String</Return>
<Name>ToBase64String</Name>
<Params>
<Param>
<Type>System.Byte[]</Type>
<Name>inArray</Name>
</Param>
</Params>
<Imports>
<Import>org.apache.commons.codec.binary.Base64</Import>
</Imports>
<Java>Base64.encodeBase64String(${inArray})</Java>
</Method>
<Method>
<Return>System.Boolean</Return>
<Name>ToBoolean</Name>

View File

@ -0,0 +1,14 @@
Apache Commons Codec
Copyright 2002-2009 The Apache Software Foundation
This product includes software developed by
The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java contains
test data from http://aspell.sourceforge.net/test/batch0.tab.
Copyright (C) 2002 Kevin Atkinson (kevina@gnu.org). Verbatim copying
and distribution of this entire article is permitted in any medium,
provided this notice is preserved.
--------------------------------------------------------------------------------

View File

@ -0,0 +1,5 @@
3rd Party Software License
commons-lang, commons-codec Apache 2.0

Binary file not shown.