am I the only one to say that the java.nio. is bullshit?
i have been trying to write some code using it to transfer file over the
net.
small file it is ok, big file -- problematic.
java.lang.OutOf MemoryError
at java.nio.Bits.r eserveMemory(Un known Source)
at java.nio.Direct ByteBuffer.<ini t>(Unknown Source)
at java.nio.ByteBu ffer.allocateDi rect(Unknown Source)
at sun.nio.ch.Util .getTemporaryDi rectBuffer(Unkn own Source)
i have been trying to write some code using it to transfer file over the
net.
small file it is ok, big file -- problematic.
java.lang.OutOf MemoryError
at java.nio.Bits.r eserveMemory(Un known Source)
at java.nio.Direct ByteBuffer.<ini t>(Unknown Source)
at java.nio.ByteBu ffer.allocateDi rect(Unknown Source)
at sun.nio.ch.Util .getTemporaryDi rectBuffer(Unkn own Source)
Comment