Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Loader.loadOBJ(byte[] bytes)
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Loader.loadOBJ(byte[] bytes) (Read 1891 times)
AGP
quad
Posts: 1726
Loader.loadOBJ(byte[] bytes)
«
on:
September 28, 2012, 07:58:29 pm »
Such method would be useful for those times when we want to protect the models. I could scramble the bytes for storing, them unscramble them for loading and passing them to Loader.
Logged
EgonOlsen
Administrator
quad
Posts: 12295
Re: Loader.loadOBJ(byte[] bytes)
«
Reply #1 on:
September 28, 2012, 08:25:19 pm »
Just wrap the array in a ByteArrayInputStream and you are done.
Logged
AGP
quad
Posts: 1726
Re: Loader.loadOBJ(byte[] bytes)
«
Reply #2 on:
September 28, 2012, 09:07:48 pm »
That's true, thanks a lot.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT - a 3d engine for Java
»
Support
»
Loader.loadOBJ(byte[] bytes)