• Post Reply Bookmark Topic Watch Topic
  • New Topic

Variable size array in the framework?  RSS feed

 
Saverio Miroddi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote a variable size array class, because i need to redirect the output of a ImageIO.write() to a pipedoutputstream, and get the binary result from the pipedinputstream.

The question is:
is in the framework a ready made class for variable size arrays or a different way to treat this kind of situations?

Thank you!
Saverio J(ava) Miroddi
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Normally one would use ByteArrayInputStream and/or ByteArrayOutputStream for this kind of application.
 
Vlado Zajac
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at ByteArrayOutputStream .
 
Saverio Miroddi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!