DbtuTools project
Java Library

org.dbtutools.DbtuTools.core
Class ApiWrapper

java.lang.Object
  |
  +--org.dbtutools.DbtuTools.core.ApiWrapper

public class ApiWrapper
extends java.lang.Object

Wrapper class, covers the dbtuapiwrapper binary related stuff. It can not be instantiated.

Remark: Please notice, that core processes and utilities should not use methods of this class directly. Use the theme oriented class methods instead (for example System.getEndianType() instead of getEndianType()).

Author:
Daniel Scheibli <daniel.scheibli at edelbyte.org>

Field Summary
static int ENDIAN_TYPE_BIG
          Constant standing for all big endian platforms as most RISC machines are.
static int ENDIAN_TYPE_LITTLE
          Constant standing for all little endian platforms as systems with Intel x86 processor(s) are.
 
Method Summary
static int getEndianType()
          Detects and returns the endian type of the current running platform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENDIAN_TYPE_LITTLE

public static final int ENDIAN_TYPE_LITTLE
Constant standing for all little endian platforms as systems with Intel x86 processor(s) are.

ENDIAN_TYPE_BIG

public static final int ENDIAN_TYPE_BIG
Constant standing for all big endian platforms as most RISC machines are.
Method Detail

getEndianType

public static int getEndianType()
                         throws UnknownValueException
Detects and returns the endian type of the current running platform.
Returns:
ENDIAN_TYPE_LITTLE - For the case, that a little endian platform was detected.
ENDIAN_TYPE_BIG - For the case, that a big endian platform was detected.
Throws:
UnknownValueException - For the case, that the endian type could not be detected.

DbtuTools project
Java Library