org.jruby.util
Class Convert2

java.lang.Object
  extended by org.jruby.util.Convert2

public class Convert2
extends java.lang.Object


Nested Class Summary
static class Convert2.ERange
           
 
Constructor Summary
Convert2(Ruby runtime, org.jruby.util.ByteList _str, int base, boolean badcheck)
           
 
Method Summary
 double byteListToDouble()
           
static double byteListToDouble(Ruby runtime, org.jruby.util.ByteList str, boolean badcheck)
          rb_cstr_to_dbl
 RubyInteger byteListToInum()
           
static RubyInteger byteListToInum(Ruby runtime, org.jruby.util.ByteList str, int base, boolean badcheck)
          rb_cstr_to_inum
static org.jruby.util.ByteList intToBinaryByteList(int i)
           
static byte[] intToBinaryBytes(int i)
           
static byte[] intToByteArray(int i, int radix, boolean upper)
           
static byte[] intToCharBytes(int i)
           
static org.jruby.util.ByteList intToHexByteList(int i)
           
static org.jruby.util.ByteList intToHexByteList(int i, boolean upper)
           
static byte[] intToHexBytes(int i)
           
static byte[] intToHexBytes(int i, boolean upper)
           
static org.jruby.util.ByteList intToOctalByteList(int i)
           
static byte[] intToOctalBytes(int i)
           
static org.jruby.util.ByteList longToBinaryByteList(long i)
           
static byte[] longToBinaryBytes(long i)
           
static byte[] longToByteArray(long i, int radix, boolean upper)
           
static org.jruby.util.ByteList longToByteList(long i)
           
static org.jruby.util.ByteList longToByteList(long i, int radix)
           
static byte[] longToCharBytes(long i)
           
static org.jruby.util.ByteList longToHexByteList(long i)
           
static org.jruby.util.ByteList longToHexByteList(long i, boolean upper)
           
static byte[] longToHexBytes(long i)
           
static byte[] longToHexBytes(long i, boolean upper)
           
static org.jruby.util.ByteList longToOctalByteList(long i)
           
static byte[] longToOctalBytes(long i)
           
static double stringToDouble(Ruby runtime, java.lang.String number)
           
static byte[] twosComplementToBinaryBytes(byte[] in)
           
static byte[] twosComplementToHexBytes(byte[] in, boolean upper)
           
static byte[] twosComplementToOctalBytes(byte[] in)
           
static byte[] twosComplementToUnsignedBytes(byte[] in, int shift, boolean upper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Convert2

public Convert2(Ruby runtime,
                org.jruby.util.ByteList _str,
                int base,
                boolean badcheck)
Method Detail

intToBinaryBytes

public static final byte[] intToBinaryBytes(int i)

intToOctalBytes

public static final byte[] intToOctalBytes(int i)

intToHexBytes

public static final byte[] intToHexBytes(int i)

intToHexBytes

public static final byte[] intToHexBytes(int i,
                                         boolean upper)

intToBinaryByteList

public static final org.jruby.util.ByteList intToBinaryByteList(int i)

intToOctalByteList

public static final org.jruby.util.ByteList intToOctalByteList(int i)

intToHexByteList

public static final org.jruby.util.ByteList intToHexByteList(int i)

intToHexByteList

public static final org.jruby.util.ByteList intToHexByteList(int i,
                                                             boolean upper)

intToByteArray

public static final byte[] intToByteArray(int i,
                                          int radix,
                                          boolean upper)

intToCharBytes

public static final byte[] intToCharBytes(int i)

longToBinaryBytes

public static final byte[] longToBinaryBytes(long i)

longToOctalBytes

public static final byte[] longToOctalBytes(long i)

longToHexBytes

public static final byte[] longToHexBytes(long i)

longToHexBytes

public static final byte[] longToHexBytes(long i,
                                          boolean upper)

longToBinaryByteList

public static final org.jruby.util.ByteList longToBinaryByteList(long i)

longToOctalByteList

public static final org.jruby.util.ByteList longToOctalByteList(long i)

longToHexByteList

public static final org.jruby.util.ByteList longToHexByteList(long i)

longToHexByteList

public static final org.jruby.util.ByteList longToHexByteList(long i,
                                                              boolean upper)

longToByteArray

public static final byte[] longToByteArray(long i,
                                           int radix,
                                           boolean upper)

longToCharBytes

public static final byte[] longToCharBytes(long i)

longToByteList

public static final org.jruby.util.ByteList longToByteList(long i)

longToByteList

public static final org.jruby.util.ByteList longToByteList(long i,
                                                           int radix)

twosComplementToBinaryBytes

public static final byte[] twosComplementToBinaryBytes(byte[] in)

twosComplementToOctalBytes

public static final byte[] twosComplementToOctalBytes(byte[] in)

twosComplementToHexBytes

public static final byte[] twosComplementToHexBytes(byte[] in,
                                                    boolean upper)

twosComplementToUnsignedBytes

public static final byte[] twosComplementToUnsignedBytes(byte[] in,
                                                         int shift,
                                                         boolean upper)

byteListToInum

public static RubyInteger byteListToInum(Ruby runtime,
                                         org.jruby.util.ByteList str,
                                         int base,
                                         boolean badcheck)
rb_cstr_to_inum


byteListToDouble

public static double byteListToDouble(Ruby runtime,
                                      org.jruby.util.ByteList str,
                                      boolean badcheck)
rb_cstr_to_dbl


byteListToInum

public RubyInteger byteListToInum()

stringToDouble

public static double stringToDouble(Ruby runtime,
                                    java.lang.String number)

byteListToDouble

public double byteListToDouble()


Copyright © 2002-2009 JRuby Team. All Rights Reserved.