Can I use both PrintWriter and BufferedOutputStream on the same outputstream?
The situation is this:
I\'m having a SSLSocket program and I want to be able to tra
I would use a DataOutputStream (possibly wrapping a BufferedOutputStream). It allows you to transfer byte[], int, double String and many other types. To send the byte[] you may want to send the length first as a int or short.
byte[]
int
double
String
short