RE: How do I avoid creating buffers just to pass data to MemBufInputSource()

2005-08-19 Thread Jesse Pelton
tice which one you'd posted to. Someone over there can probably help you out. > -Original Message- > From: Cullum, Steve [mailto:[EMAIL PROTECTED] > Sent: Friday, August 19, 2005 2:46 PM > To: security-dev@xml.apache.org > Subject: RE: How do I avoid creating buffers j

RE: How do I avoid creating buffers just to pass data to MemBufInputSource()

2005-08-19 Thread Cullum, Steve
). Thanks again -Original Message- From: Jesse Pelton [mailto:[EMAIL PROTECTED] Sent: 19 August 2005 14:47 To: security-dev@xml.apache.org Subject: RE: How do I avoid creating buffers just to pass data to MemBufInputSource() You can prevent MemBufInputSource from cloning the b

RE: How do I avoid creating buffers just to pass data to MemBufInputSource()

2005-08-19 Thread Jesse Pelton
You can prevent MemBufInputSource from cloning the buffer with MemBufInputSource::setCopyBufToStream(false). I think you can avoid the need for any buffers by implementing your own InputSource and BinInputStream. It looks to me like you only need to implement InputSource::makeStream(), BinInputSt