Methods Summary |
---|
public void | print(java.lang.String s)Writes a String to the client,
without a carriage return-line feed (CRLF)
character at the end.
if (s==null) s="null";
int len = s.length();
for (int i = 0; i < len; i++) {
char c = s.charAt (i);
//
// XXX NOTE: This is clearly incorrect for many strings,
// but is the only consistent approach within the current
// servlet framework. It must suffice until servlet output
// streams properly encode their output.
//
if ((c & 0xff00) != 0) { // high order byte must be zero
String errMsg = lStrings.getString("err.not_iso8859_1");
Object[] errArgs = new Object[1];
errArgs[0] = new Character(c);
errMsg = MessageFormat.format(errMsg, errArgs);
throw new CharConversionException(errMsg);
}
write (c);
}
|
public void | print(boolean b)Writes a boolean value to the client,
with no carriage return-line feed (CRLF)
character at the end.
String msg;
if (b) {
msg = lStrings.getString("value.true");
} else {
msg = lStrings.getString("value.false");
}
print(msg);
|
public void | print(char c)Writes a character to the client,
with no carriage return-line feed (CRLF)
at the end.
print(String.valueOf(c));
|
public void | print(int i)Writes an int to the client,
with no carriage return-line feed (CRLF)
at the end.
print(String.valueOf(i));
|
public void | print(long l)Writes a long value to the client,
with no carriage return-line feed (CRLF) at the end.
print(String.valueOf(l));
|
public void | print(float f)Writes a float value to the client,
with no carriage return-line feed (CRLF) at the end.
print(String.valueOf(f));
|
public void | print(double d)Writes a double value to the client,
with no carriage return-line feed (CRLF) at the end.
print(String.valueOf(d));
|
public void | println(java.lang.String s)Writes a String to the client,
followed by a carriage return-line feed (CRLF).
print(s);
println();
|
public void | println(boolean b)Writes a boolean value to the client,
followed by a
carriage return-line feed (CRLF).
print(b);
println();
|
public void | println(char c)Writes a character to the client, followed by a carriage
return-line feed (CRLF).
print(c);
println();
|
public void | println(int i)Writes an int to the client, followed by a
carriage return-line feed (CRLF) character.
print(i);
println();
|
public void | println(long l)Writes a long value to the client, followed by a
carriage return-line feed (CRLF).
print(l);
println();
|
public void | println(float f)Writes a float value to the client,
followed by a carriage return-line feed (CRLF).
print(f);
println();
|
public void | println(double d)Writes a double value to the client,
followed by a carriage return-line feed (CRLF).
print(d);
println();
|
public void | println()Writes a carriage return-line feed (CRLF)
to the client.
print("\r\n");
|