Skip to content
Advertisement

Tag: capacity

writing to OutputStream having capacity restriction

Following the question I asked before: I am implementing an ByteArrayOutputStream having capacity restriction. My main limitation is an amount of available memory. So having such stream os: When I write more than say 1MB to the output stream I need to “stop”. I prefer not throw exception but write the complete contents of os output stream to the specified

Advertisement