problem in getting byte[] from BufferByte class

how to convert byte[] to BufferByte objectsarray() doesnot work. can one tell me other way ?with regsBen
[132 byte] By [Ben.Kalea] at [2007-10-2 6:45:15]
# 1
Yeah,array() method certainly doesn't work.If you wanna get a buffer array from the ByteBuffer,use its public ByteBuffer get(byte[] dst) method.Refer to its doc.
zydgyy@vip.sina.coma at 2007-7-16 13:53:53 > top of Java-index,Java Essentials,Java Programming...
# 2
..and to convert byte[] to ByteBuffer, use the wrap method.
jsalonena at 2007-7-16 13:53:53 > top of Java-index,Java Essentials,Java Programming...
# 3

wel....ther is still some problem ?

i m reading a large file which have size 125 mb or more. i m splitting that file in 10 mb files.

in the program i get the ByteBuffer object & as i try to use get(byte[]), after reading and creating files.....after 4 or 5 file creating its throw an exception like....Premission Denied.

can u tell me why ?

regs,

Ben

Ben.Kalea at 2007-7-16 13:53:53 > top of Java-index,Java Essentials,Java Programming...
# 4
disk full?
jsalonena at 2007-7-16 13:53:53 > top of Java-index,Java Essentials,Java Programming...
# 5
no...i have more than 15 gb free space
Ben.Kalea at 2007-7-16 13:53:53 > top of Java-index,Java Essentials,Java Programming...
# 6
u can get permission denied also when the output files already exist and can't be written to for whatever reason... maybe they are set to read-only, maybe they are locked by another program. can you post a short program that illustrates your problem?
jsalonena at 2007-7-16 13:53:53 > top of Java-index,Java Essentials,Java Programming...