convert little Endian file into big Endian

后端 未结 6 918
感动是毒
感动是毒 2020-12-04 01:23

how can i convert a liitle Endian binary file into big Endian binary file. i have a binary binary written in C and i am reading this file in Java with DataInputStream which

6条回答
  •  孤城傲影
    2020-12-04 02:02

    after Googling so much i have found a apache Jar file which has SwappedDataInputStream Class. org.apache.commons.io.input.SwappedDataInputStream. this class made my results accurate. for full detail of that class see.

    http://commons.apache.org/io/api-1.4/org/apache/commons/io/input/SwappedDataInputStream.html

提交回复
热议问题