±Û¾´ÀÌ :ÀüÀç¿Ï 1998³â 6¿ù 24ÀÏ 14:06:29
¾î¶² DataFormatÀ» Java¸¦ ÀÌ¿ëÇؼ ÀÐÀ¸·Á±¸ Çϴµ¥¿ä
File FormatÀº ´ÙÀ½°ú °°½À´Ï´Ù.
------------------------------------------------
Postion | Field | Type | Byte Order
------------------------------------------------
Byte 0 | Field 1 | Integer | Big-endian
Byte 4 | Field 2 | Integer | Big-endian
Byte 8 | Field 3 | Integer | Big-endian
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
Byte xx | Field x | Integer | Little-endian
Byte xx | Field x | Double | Little-endian
------------------------------------------------
±×·±µ¥
Field 1,2, 3Àº DataInputStreamÀÇ readInt()·Î ÀÐ¾î¼ Á¤È®È÷ Àоú´Âµ¥
±âŸ Little-endianÀ¸·Î µÇ¾îÀÖ´Â Field´Â readInt()¿Í
readDouble()µîÀ¸·Î´Â Á¤»óÀûÀ¸·Î ÀÐÈ÷Áö ¾Ê´Â±º¿ä....T.T
Á¦°¡ Little&Big endian¿¡ ´ëÇؼ Àß ¾ËÁö ¸øÇÏÁö¸¸ ÀÌ°Í ¶§¹®ÀÌ ¾Æ´Ñ°¡
»ý°¢ µÇ¾îÁý´Ï´Ù. Byte Order°¡ ´Ù¸£´Ï±î µÚÁý¾î¼ ÀÐÀ¸¸é µÇÁö ¾ÊÀ»±îµµ
»ý°¢ ÇØ º¸¾ÒÁö¸¸ ÀÌ°ÍÀº ¹æ¹ýÁ¶Â÷ ¸ð¸£°Ú±º¿ä.... ºÎµð ¹æ¹ýÁ» ¾Ë·Á ÁÖ½É
°í¸¿°Ú½À´Ï´Ù.
±×·³ ¿©·¯ºÐµéÀÇ °í°ßÀ» ±â´Ù¸®µµ·Ï ÇÏ°Ú½À´Ï´Ù.