08/04/18 14:42:42
FileChannelを使ってファイルからintの値を取り出そうとしているのですが
具体的な方法がわかりません
FileChannel channel = new FileInputStream("hoge.hoge").getChannel();
ByteBuffer bb = ByteBuffer.allocate(4);
channel.read(bb, seekpoint);
IntBuffer ib = bb.asIntBuffer();
ib.get();
これじゃ取り出せないのですがどうすればいいのでしょう?