Top "Outputstream" questions

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

How to output a character as an integer through cout?

#include <iostream> using namespace std; int main() { char c1 = 0xab; signed char c2 = 0xcd; unsigned char c3 = 0xef; …

c++ io type-conversion iostream outputstream
Write an InputStream to an HttpServletResponse

I have an InputStream that I want written to a HttpServletResponse. There's this approach, which takes too long due to …

java jakarta-ee servlets inputstream outputstream
How to write Strings to an OutputStream

How can I create class that takes an implentation of OutputStream and writes the the content to it? For example, …

java string outputstream
How to use HttpsURLConnection through proxy by setProperty?

Network environment: Https Client<=============>Proxy Server<==============>Https Server                                                   192.168.17.11<-----extranet------>192.168.17.22 10.100.21.10<----intranet----->10.100.21.11 ps: Http …

java networking proxy outputstream httpsurlconnection
Should one call .close() on HttpServletResponse.getOutputStream()/.getWriter()?

In Java Servlets, one can access the response body via response.getOutputStream() or response.getWriter(). Should one call .close() on …

java servlets outputstream
How do I write to a .txt file in Android?

I have an app that needs to read and write to a text file. I have it reading, but I …

android textview outputstream
Java Networking: Explain InputStream and OutputStream in Socket

I have created a server by using ServerSocket. After that, I have created Client using Socket, and connect to this …

java sockets inputstream outputstream
Log4J: How do I redirect an OutputStream or Writer to logger's writer(s)?

I have a method which runs asynchronously after start, using OutputStream or Writer as parameter. It acts as a recording …

java logging log4j outputstream writer
Is there a Null OutputStream in Java?

I need to specify an OutputStream for an API I'm using, but I don't actually have a need for the …

java outputstream
How to check whether an OutputStream is closed

Is there anyway to check whether an OutputStream is closed without attempting to write to it and catching the IOException? …

java outputstream java-io