-
JarabraDix is a Java library that supports binary integer value to decimal sequence conversion.
-
Yes, it will substitute implementations such as
Integer.toString(int)
,System.out(=PrintStream).println(int)
and so on. -
JarabraDix was forked from DoubDabC. We decided to separate GC-friendry-API idea from DoubDabC implementation.
- There is no String constructor during conversion. That means, GC-friendry !
- JarabraDix supports int & long primitive value input.
-
You can get decimal number sequence result by
char[]
array. -
You can assign
Appendable
,Writer
,StringBuffer
,StringBuilder
, orCharBuffer
as Arabic numeral characters(0-9) sequence output. -
CharSequence
wrapper class is provided. -
Extended
Writer
class is provided which supportsprint(int)
&print(long)
methods likePrintWriter
.
What is the difference with DoubDabC ?
-
If you use huge binary integer value that does not fit in long, use DoubDabC.
-
If you have an extremely slow JVM(and CPU) for integer division, let's try DoubDabC.
-
JarabraDix needs to use Maven 3.3.9+ and JDK 1.8+ to be built.
-
JarabraDix runtime does not depend on any other library at all. Just compile Java sources under
src/main/java/
if you don't use Maven.
- Code is under The MIT License.
- By olyutorskii at 2017
--- EOF ---