com.sapportals.portal.prt.servlets_jsp.server.page

Class JspWriterFastImpl

java.lang.Object
  extended by java.io.Writer
      extended by javax.servlet.jsp.JspWriter
          extended by com.sapportals.portal.prt.servlets_jsp.server.page.JspWriterFastImpl
All Implemented Interfaces:
Closeable, Flushable, Appendable

Deprecated.

public class JspWriterFastImpl
extends JspWriter


Field Summary
static int DEFAULT_BUFFER_SIZE
          Deprecated.  
static int K
          Deprecated.  
 
Fields inherited from class javax.servlet.jsp.JspWriter
autoFlush, bufferSize, DEFAULT_BUFFER, NO_BUFFER, UNBOUNDED_BUFFER
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
JspWriterFastImpl(JSPResponse response, int buffersize, boolean autoflush)
          Deprecated.  
 
Method Summary
 void clear()
          Deprecated. Clear the contents of the buffer.
 void clearBuffer()
          Deprecated. Clears the current contents of the buffer.
 void close()
          Deprecated. Close the stream, flushing it first.
protected  void finalize()
          Deprecated.  
 void flush()
          Deprecated.  
 Reader getReader()
          Deprecated. Returns the value of this BodyJspWriter as a Reader.
 int getRemaining()
          Deprecated. Returns the number of bytes unused in the buffer.
 String getString()
          Deprecated. Return the value of the BodyJspWriter as a String.
 void newLine()
          Deprecated. Write a line separator.
 void print(boolean b)
          Deprecated. Print a boolean value.
 void print(char c)
          Deprecated. Print a character.
 void print(char[] s)
          Deprecated. Print an array of characters.
 void print(double d)
          Deprecated. Print a double-precision floating-point number.
 void print(float f)
          Deprecated. Print a floating-point number.
 void print(int i)
          Deprecated. Print an integer.
 void print(long l)
          Deprecated. Print a long integer.
 void print(Object obj)
          Deprecated. Print an object.
 void print(String s)
          Deprecated. Print a string.
 void println()
          Deprecated. Terminate the current line by writing the line separator string.
 void println(boolean x)
          Deprecated. Print a boolean value and then terminate the line.
 void println(char x)
          Deprecated. Print a character and then terminate the line.
 void println(char[] x)
          Deprecated. Print an array of characters and then terminate the line.
 void println(double x)
          Deprecated. Print a double-precision floating-point number and then terminate the line.
 void println(float x)
          Deprecated. Print a floating-point number and then terminate the line.
 void println(int x)
          Deprecated. Print an integer and then terminate the line.
 void println(long x)
          Deprecated. Print a long integer and then terminate the line.
 void println(Object x)
          Deprecated. Print an Object and then terminate the line.
 void println(String x)
          Deprecated. Print a String and then terminate the line.
 void releaseBuffer()
          Deprecated.  
 void write(char[] buf)
          Deprecated. Write an array of characters.
 void write(char[] cbuf, int off, int len)
          Deprecated. Write a portion of an array of characters.
 void write(int c)
          Deprecated. Writes a single character.
 void write(String s)
          Deprecated. Write a string.
 void write(String s, int off, int len)
          Deprecated. Write a portion of a String.
 
Methods inherited from class javax.servlet.jsp.JspWriter
getBufferSize, isAutoFlush
 
Methods inherited from class java.io.Writer
append, append, append
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

K

public static final int K
Deprecated. 
See Also:
Constant Field Values

DEFAULT_BUFFER_SIZE

public static final int DEFAULT_BUFFER_SIZE
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

JspWriterFastImpl

public JspWriterFastImpl(JSPResponse response,
                         int buffersize,
                         boolean autoflush)
Deprecated. 
Method Detail

write

public void write(int c)
           throws IOException
Deprecated. 
Writes a single character.

Overrides:
write in class Writer
Parameters:
c - a char that will be written represented by its integer value
Throws:
IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Deprecated. 
Write a portion of an array of characters. Ordinarily this method stores characters from the given array into this stream's buffer, flushing the buffer to the underlying stream as needed. If the requested length is at least as large as the buffer, however, then this method will flush the buffer and write the characters directly to the underlying stream. Thus redundant DiscardableBufferedWriter s will not copy data unnecessarily.

Specified by:
write in class Writer
Parameters:
cbuf - A character array
off - Offset from which to start reading characters
len - Number of characters to write
Throws:
IOException

write

public void write(char[] buf)
           throws IOException
Deprecated. 
Write an array of characters. This method cannot be inherited from the Writer class because it must suppress I/O exceptions.

Overrides:
write in class Writer
Parameters:
buf - A character array
Throws:
IOException

write

public void write(String s,
                  int off,
                  int len)
           throws IOException
Deprecated. 
Write a portion of a String.

Overrides:
write in class Writer
Parameters:
s - String to be written
off - Offset from which to start reading characters
len - Number of characters to be written
Throws:
IOException

write

public void write(String s)
           throws IOException
Deprecated. 
Write a string. This method cannot be inherited from the Writer class because it must suppress I/O exceptions.

Overrides:
write in class Writer
Parameters:
s - String to be written
Throws:
IOException

newLine

public void newLine()
             throws IOException
Deprecated. 
Write a line separator. The line separator string is defined by the system property line.separator, and is not necessarily a single newline ('\n') character.

Specified by:
newLine in class JspWriter
Throws:
IOException - If an I/O error occurs

print

public void print(boolean b)
           throws IOException
Deprecated. 
Print a boolean value. The string produced by java.lang.String valueOf(boolean) is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.

Specified by:
print in class JspWriter
Parameters:
b - The boolean to be printed
Throws:
IOException

print

public void print(char c)
           throws IOException
Deprecated. 
Print a character. The character is translated into one or more bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.

Specified by:
print in class JspWriter
Parameters:
c - The char to be printed
Throws:
IOException

print

public void print(int i)
           throws IOException
Deprecated. 
Print an integer. The string produced by java.lang.String valueOf(int) is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.

Specified by:
print in class JspWriter
Parameters:
i - The int to be printed
Throws:
IOException
See Also:
toString(int)

print

public void print(long l)
           throws IOException
Deprecated. 
Print a long integer. The string produced by java.lang.String#valueOf(long) is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.

Specified by:
print in class JspWriter
Parameters:
l - The long to be printed
Throws:
IOException
See Also:
Long.toString(long)

print

public void print(float f)
           throws IOException
Deprecated. 
Print a floating-point number. The string produced by java.lang.String#valueOf(float) is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.

Specified by:
print in class JspWriter
Parameters:
f - The float to be printed
Throws:
IOException
See Also:
toString(float)

print

public void print(double d)
           throws IOException
Deprecated. 
Print a double-precision floating-point number. The string produced by java.lang.String#valueOf(double) is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.

Specified by:
print in class JspWriter
Parameters:
d - The double to be printed
Throws:
IOException
See Also:
toString(double)

print

public void print(char[] s)
           throws IOException
Deprecated. 
Print an array of characters. The characters are converted into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.

Specified by:
print in class JspWriter
Parameters:
s - The array of chars to be printed
Throws:
NullPointerException - If s is null
IOException

print

public void print(String s)
           throws IOException
Deprecated. 
Print a string. If the argument is null then the string "null" is printed. Otherwise, the string's characters are converted into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.

Specified by:
print in class JspWriter
Parameters:
s - The String to be printed
Throws:
IOException

print

public void print(Object obj)
           throws IOException
Deprecated. 
Print an object. The string produced by the java.lang.String#valueOf(Object) method is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.

Specified by:
print in class JspWriter
Parameters:
obj - The Object to be printed
Throws:
IOException

println

public void println()
             throws IOException
Deprecated. 
Terminate the current line by writing the line separator string. The line separator string is defined by the system property line.separator, and is not necessarily a single newline character '\n'.

Specified by:
println in class JspWriter
Throws:
IOException

println

public void println(boolean x)
             throws IOException
Deprecated. 
Print a boolean value and then terminate the line. This method behaves as though it invokes print(boolean) and then println().

Specified by:
println in class JspWriter
Parameters:
x - The boolean to be printed
Throws:
IOException

println

public void println(char x)
             throws IOException
Deprecated. 
Print a character and then terminate the line. This method behaves as though it invokes print(char) and then println().

Specified by:
println in class JspWriter
Parameters:
x - The char to be printed
Throws:
IOException

println

public void println(int x)
             throws IOException
Deprecated. 
Print an integer and then terminate the line. This method behaves as though it invokes print(int) and then println().

Specified by:
println in class JspWriter
Parameters:
x - The int to be printed
Throws:
IOException

println

public void println(long x)
             throws IOException
Deprecated. 
Print a long integer and then terminate the line. This method behaves as though it invokes print(long) and then println().

Specified by:
println in class JspWriter
Parameters:
x - The long to be printed
Throws:
IOException

println

public void println(float x)
             throws IOException
Deprecated. 
Print a floating-point number and then terminate the line. This method behaves as though it invokes print(float) and then println().

Specified by:
println in class JspWriter
Parameters:
x - The float to be printed
Throws:
IOException

println

public void println(double x)
             throws IOException
Deprecated. 
Print a double-precision floating-point number and then terminate the line. This method behaves as though it invokes print(double) and then println().

Specified by:
println in class JspWriter
Parameters:
x - The double to be printed
Throws:
IOException

println

public void println(char[] x)
             throws IOException
Deprecated. 
Print an array of characters and then terminate the line. This method behaves as though it invokes print(char[]) and then println().

Specified by:
println in class JspWriter
Parameters:
x - The char array to be printed
Throws:
IOException

println

public void println(String x)
             throws IOException
Deprecated. 
Print a String and then terminate the line. This method behaves as though it invokes print(String) and then println().

Specified by:
println in class JspWriter
Parameters:
x - The String to be printed
Throws:
IOException

println

public void println(Object x)
             throws IOException
Deprecated. 
Print an Object and then terminate the line. This method behaves as though it invokes print(Object) and then println().

Specified by:
println in class JspWriter
Parameters:
x - the object that will be printed
Throws:
IOException

clear

public void clear()
           throws IOException
Deprecated. 
Clear the contents of the buffer. If the buffer has been already been flushed then the clear operation shall throw an IOException to signal the fact that some data has already been irrevocably written to the client response stream.

Specified by:
clear in class JspWriter
Throws:
IOException - If an I/O error occurs

clearBuffer

public void clearBuffer()
                 throws IOException
Deprecated. 
Clears the current contents of the buffer. Unlike clear(), this mehtod will not throw an IOException if the buffer has already been flushed. It merely clears the current content of the buffer and returns.

Specified by:
clearBuffer in class JspWriter
Throws:
IOException - If an I/O error occurs

close

public void close()
           throws IOException
Deprecated. 
Close the stream, flushing it first. Once a stream has been closed, further write() or flush() invocations will cause an IOException to be thrown. Closing a previously-closed stream, however, has no effect.

Specified by:
close in interface Closeable
Specified by:
close in class JspWriter
Throws:
IOException - If an I/O error occurs

getRemaining

public int getRemaining()
Deprecated. 
Returns the number of bytes unused in the buffer.

Specified by:
getRemaining in class JspWriter
Returns:
the number of bytes unused in the buffer

getReader

public Reader getReader()
Deprecated. 
Returns the value of this BodyJspWriter as a Reader. Note: this is after evaluation!! There are no scriptlets, etc in this stream.

Returns:
the value of this BodyJspWriter as a Reader

getString

public String getString()
Deprecated. 
Return the value of the BodyJspWriter as a String. Note: this is after evaluation!! There are no scriptlets, etc in this stream.

Returns:
the value of the BodyJspWriter as a String

finalize

protected void finalize()
                 throws Throwable
Deprecated. 
Overrides:
finalize in class Object
Throws:
Throwable

releaseBuffer

public void releaseBuffer()
Deprecated. 

flush

public void flush()
           throws IOException
Deprecated. 
Specified by:
flush in interface Flushable
Specified by:
flush in class JspWriter
Throws:
IOException
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN


Copyright 2011 SAP AG Complete Copyright Notice