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:
parent
0a5d22e8dd
commit
0532c9dc6f
@ -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>
|
||||
|
@ -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>
|
||||
|
14
CS2JLibrary/lib/NOTICE-commons-codec.txt
Normal file
14
CS2JLibrary/lib/NOTICE-commons-codec.txt
Normal 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.
|
||||
--------------------------------------------------------------------------------
|
5
CS2JLibrary/lib/README-3rdPARTY-LICENSES.txt
Normal file
5
CS2JLibrary/lib/README-3rdPARTY-LICENSES.txt
Normal file
@ -0,0 +1,5 @@
|
||||
3rd Party Software License
|
||||
|
||||
commons-lang, commons-codec Apache 2.0
|
||||
|
||||
|
BIN
CS2JLibrary/lib/commons-codec-1.4.jar
Normal file
BIN
CS2JLibrary/lib/commons-codec-1.4.jar
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user