Movatterモバイル変換


[0]ホーム

URL:


         


Class ServletOutputStream

java.lang.Object  |  +--java.io.OutputStream        |        +--javax.servlet.ServletOutputStream

public abstract classServletOutputStream
extends java.io.OutputStream

Provides an output stream for sending binary data to the client. AServletOutputStream object is normally retrieved via theServletResponse.getOutputStream() method.

This is an abstract class that the servlet container implements. Subclasses of this class must implement thejava.io.OutputStream.write(int) method.

See Also:
ServletResponse

ServletOutputStream()
          Does nothing, because this is an abstract class.
 
print(boolean b)
          Writes aboolean value to the client, with no carriage return-line feed (CRLF) character at the end.
print(char c)
          Writes a character to the client, with no carriage return-line feed (CRLF) at the end.
print(double d)
          Writes adouble value to the client, with no carriage return-line feed (CRLF) at the end.
print(float f)
          Writes afloat value to the client, with no carriage return-line feed (CRLF) at the end.
print(int i)
          Writes an int to the client, with no carriage return-line feed (CRLF) at the end.
print(long l)
          Writes along value to the client, with no carriage return-line feed (CRLF) at the end.
print(java.lang.String s)
          Writes aString to the client, without a carriage return-line feed (CRLF) character at the end.
println()
          Writes a carriage return-line feed (CRLF) to the client.
println(boolean b)
          Writes aboolean value to the client, followed by a carriage return-line feed (CRLF).
println(char c)
          Writes a character to the client, followed by a carriage return-line feed (CRLF).
println(double d)
          Writes adouble value to the client, followed by a carriage return-line feed (CRLF).
println(float f)
          Writes afloat value to the client, followed by a carriage return-line feed (CRLF).
println(int i)
          Writes an int to the client, followed by a carriage return-line feed (CRLF) character.
println(long l)
          Writes along value to the client, followed by a carriage return-line feed (CRLF).
println(java.lang.String s)
          Writes aString to the client, followed by a carriage return-line feed (CRLF).
 
Methods inherited from class java.io.OutputStream
close, flush, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

ServletOutputStream

protectedServletOutputStream()
Does nothing, because this is an abstract class.

print

public voidprint(java.lang.String s)           throws java.io.IOException
Writes aString to the client, without a carriage return-line feed (CRLF) character at the end.
Parameters:
s - theStringThrows:
java.io.IOException - if an input or output exception occurred

print

public voidprint(boolean b)           throws java.io.IOException
Writes aboolean value to the client, with no carriage return-line feed (CRLF) character at the end.
Parameters:
b - theboolean value to send to the client
Throws:
java.io.IOException - if an input or output exception occurred

print

public voidprint(char c)           throws java.io.IOException
Writes a character to the client, with no carriage return-line feed (CRLF) at the end.
Parameters:
c - the character to send to the client
Throws:
java.io.IOException - if an input or output exception occurred

print

public voidprint(int i)           throws java.io.IOException
Writes an int to the client, with no carriage return-line feed (CRLF) at the end.
Parameters:
i - the int to send to the client
Throws:
java.io.IOException - if an input or output exception occurred

print

public voidprint(long l)           throws java.io.IOException
Writes along value to the client, with no carriage return-line feed (CRLF) at the end.
Parameters:
l - thelong value to send to the client
Throws:
java.io.IOException - if an input or output exception occurred

print

public voidprint(float f)           throws java.io.IOException
Writes afloat value to the client, with no carriage return-line feed (CRLF) at the end.
Parameters:
f - thefloat valueto send to the client
Throws:
java.io.IOException - if an input or output exception occurred

print

public voidprint(double d)           throws java.io.IOException
Writes adouble value to the client, with no carriage return-line feed (CRLF) at the end.
Parameters:
d - thedouble valueto send to the client
Throws:
java.io.IOException - if an input or output exception occurred

println

public voidprintln()             throws java.io.IOException
Writes a carriage return-line feed (CRLF) to the client.
Throws:
java.io.IOException - if an input or output exception occurred

println

public voidprintln(java.lang.String s)             throws java.io.IOException
Writes aString to the client, followed by a carriage return-line feed (CRLF).
Parameters:
s - theString to write to the client
Throws:
java.io.IOException - if an input or output exception occurred

println

public voidprintln(boolean b)             throws java.io.IOException
Writes aboolean value to the client, followed by a carriage return-line feed (CRLF).
Parameters:
b - theboolean value to write to the client
Throws:
java.io.IOException - if an input or output exception occurred

println

public voidprintln(char c)             throws java.io.IOException
Writes a character to the client, followed by a carriage return-line feed (CRLF).
Parameters:
c - the character to write to the client
Throws:
java.io.IOException - if an input or output exception occurred

println

public voidprintln(int i)             throws java.io.IOException
Writes an int to the client, followed by a carriage return-line feed (CRLF) character.
Parameters:
i - the int to write to the client
Throws:
java.io.IOException - if an input or output exception occurred

println

public voidprintln(long l)             throws java.io.IOException
Writes along value to the client, followed by a carriage return-line feed (CRLF).
Parameters:
l - thelong value to write to the client
Throws:
java.io.IOException - if an input or output exception occurred

println

public voidprintln(float f)             throws java.io.IOException
Writes afloat value to the client, followed by a carriage return-line feed (CRLF).
Parameters:
f - thefloat value to write to the client
Throws:
java.io.IOException - if an input or output exception occurred

println

public voidprintln(double d)             throws java.io.IOException
Writes adouble value to the client, followed by a carriage return-line feed (CRLF).
Parameters:
d - thedouble valueto write to the client
Throws:
java.io.IOException - if an input or output exception occurred

         


[8]ページ先頭

©2009-2025 Movatter.jp