[ Team LiB ] Previous Section Next Section

The ServletOutputStream Class

The ServletOutputStream class is a subclass of the OutputStream class and adds the print and println methods normally found in the PrintStream class:

public void print(boolean b)
public void print(char c)
public void print(double d)
public void print(float f)
public void print(int i)
public void print(long l)
public void print(String s)
public void println()
public void println(boolean b)
public void println(char c)
public void println(double d)
public void println(float f)
public void println(int i)
public void println(long l)
public void println(String s)

Use a Writer to Output Character Data


You are better off using PrintWriter rather than ServletOutputStream because PrintWriter performs the character conversions correctly.

    [ Team LiB ] Previous Section Next Section