Remove an element from byte[] array ( without using arraycopy or others)

hi all,

is there any way to remove elements from byte[] object or ByteArrayOutputStream

i can use arraycopy , but its i have an array like 700MB, so its performance issue, so i need to remove particular elemnts of byte array without copying it to another. the below java byte[] api is also not help ful.

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Byte.html

your replies are appreciated

OS

[433 byte] By [LoveOpensourcea] at [2007-11-27 8:57:19]
# 1

Don't keep all those 700 MB's in memory at the same time! Use a buffered- reader/writer to handle you data in smaller chunks.

http://java.sun.com/j2se/1.4.2/docs/api/java/io/BufferedWriter.html

http://java.sun.com/j2se/1.4.2/docs/api/java/io/BufferedReader.html

Code examples: http://www.exampledepot.com

prometheuzza at 2007-7-12 21:21:39 > top of Java-index,Java Essentials,Java Programming...
# 2
Since the OP is dealing with bytes he should actually use Buffered Input/Output Streams NOT Readers/Writers.
sabre150a at 2007-7-12 21:21:39 > top of Java-index,Java Essentials,Java Programming...
# 3
> Since the OP is dealing with bytes he should actually> use Buffered Input/Output Streams NOT Readers/Writers.Ahem, yes, of course. Shouldn't post so early...; )
prometheuzza at 2007-7-12 21:21:39 > top of Java-index,Java Essentials,Java Programming...