generic data types

Hello,

Does anyone know how to create a generic container of primitive data types? I'm reading in data from a binary file; its got a header that tells me the data type of the binary data. I realized that I cannot use avoid[] data as a generic data type; so I tried creating an empty array of each primitive data type, and found that it led to highly inefficient code. If someone can help me out with this problem, I'd be really grateful.

Thanks,

TJDeep

[494 byte] By [tjdeep] at [2007-9-26 1:13:57]
# 1
JDK 1.4 has java.nio package to help you I think. Or you can build your own container for primitive types.
schillj at 2007-6-29 0:12:01 > top of Java-index,Archived Forums,Java Programming...
# 2
Thanks you schillj. That answers my question.
tjdeep at 2007-6-29 0:12:01 > top of Java-index,Archived Forums,Java Programming...
# 3
I meant "Thank you"
tjdeep at 2007-6-29 0:12:01 > top of Java-index,Archived Forums,Java Programming...