Open aerisarn opened 8 years ago
Hah, a very good guess, and exactly what any sane person would do. But no I just hand code it all! Every one of the Ni* and BS* classes ( around 500 in number ) I've written from scratch.
Though I make extensive use of nif.xml and NifSkope to check what I'm doing.
So making the readFromStream(InputStream) equivalent writeToStream(OutputStream) would unfortunately take many long dull error prone days (weeks?) of laborious hand coding.
Over the years I've often thought about switching to code generation, but it's never quite been easier than just adding the next class in.
So you'll have to write them yourself, sorry.
I bet you're generating classes from nif.xml using codemodel or similar. I'd like to manipulate nifs from java, can I ask you to release the generator or add a out(OutputStream) method? I already extended ByteConvert to support fundamental types.