Top "Outputstream" questions

An abstract mechanism for writing data to a stream in Java and C#

Create UTF-8 file using HttpServletResponse

I am trying to create a UTF-8 file "myFile.aaa" using HttpServletResponse (HttpServlet). The reason why I need this to …

servlets utf-8 character-encoding outputstream
Testing what's written to a Java OutputStream

I am about to write junit tests for a XML parsing Java class that outputs directly to an OutputStream. For …

java junit outputstream
Response outputstream content length?

I am writing to output stream through various methods. How can I, before I close it, find out content length …

java response outputstream
Why is it good to close() an inputstream?

I have a sound experience in Java programming language. But one thing that has always been in my mind is …

java buffer inputstream outputstream
Is it necessary to close each nested OutputStream and Writer separately?

I am writing a piece of code: OutputStream outputStream = new FileOutputStream(createdFile); GZIPOutputStream gzipOutputStream = new GZIPOutputStream(outputStream); BufferedWriter bw = new …

java file-io outputstream writer
How do I zip on the fly and stream to Response.Output in real time?

I am trying to use the following code: I get a corrupted zip file. Why? The file names seem OK. …

asp.net zip real-time outputstream sharpziplib
What is the difference between OutputStream and Writer?

Can someone explain me the difference between OutputStream and Writer? Which of these classes should I work with?

java outputstream
Why Java OutputStream.write() Takes Integer but Writes Bytes

I am writing an OutputStream, just noticed this in the OutputStream interface, public abstract void write(int b) throws IOException; …

java io outputstream
How can I return a Zip file from my Java server-side using JAX-RS?

I want to return a zipped file from my server-side java using JAX-RS to the client. I tried the following …

java jersey jax-rs filestream outputstream
How can I read a file to an InputStream then write it into an OutputStream in Scala?

I'm trying to use basic Java code in Scala to read from a file and write to an OutputStream, but …

java scala integration inputstream outputstream