private void swapByteOrder() {
    // NB: we are setting bigEndian to be opposite the system arch
    String arch = System.getProperty("os.arch");
    if (arch.equals("x86") ||                    // Windows, Linux
            arch.equals("arm") ||                // Window CE
            arch.equals("x86_64") ||         // Windows64, Mac OS-X
            arch.equals("amd64") ||      // Linux64?
            arch.equals("alpha")) {  // Utrix, VAX, DECOS
      bigEndian = true;
    } else {
      bigEndian = false;
    }
  }
private void swapByteOrder ( ) { String arch = System . getProperty ( "os.arch" ) ; if ( arch . equals ( "x86" ) || arch . equals ( "arm" ) || arch . equals ( "x86_64" ) || arch . equals ( "amd64" ) || arch . equals ( "alpha" ) ) { bigEndian = true ; } else { bigEndian = false ; } }
Swap the byte order from the system default