⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jspwriter.java

📁 jetty SERVER連接資料庫用的軟體
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
     * to the underlying writer.     *     * @param      s   The <code>String</code> to be printed     * @throws	   java.io.IOException If an error occured while writing     */    abstract public void print(String s) throws IOException;    /**     * Print an object.  The string produced by the <code>{@link     * java.lang.String#valueOf(Object)}</code> method is written to the     * JspWriter's buffer or, if no buffer is used, directly to the     * underlying writer.     *     * @param      obj   The <code>Object</code> to be printed     * @see        java.lang.Object#toString()     * @throws	   java.io.IOException If an error occured while writing     */    abstract public void print(Object obj) throws IOException;    /**     * Terminate the current line by writing the line separator string.  The     * line separator string is defined by the system property     * <code>line.separator</code>, and is not necessarily a single newline     * character (<code>'\n'</code>).     * @throws	   java.io.IOException If an error occured while writing     */    abstract public void println() throws IOException;    /**     * Print a boolean value and then terminate the line.  This method behaves     * as though it invokes <code>{@link #print(boolean)}</code> and then     * <code>{@link #println()}</code>.     *     * @param      x the boolean to write     * @throws	   java.io.IOException If an error occured while writing     */    abstract public void println(boolean x) throws IOException;    /**     * Print a character and then terminate the line.  This method behaves as     * though it invokes <code>{@link #print(char)}</code> and then <code>{@link     * #println()}</code>.     *     * @param      x the char to write     * @throws	   java.io.IOException If an error occured while writing     */    abstract public void println(char x) throws IOException;    /**     * Print an integer and then terminate the line.  This method behaves as     * though it invokes <code>{@link #print(int)}</code> and then <code>{@link     * #println()}</code>.     *     * @param      x the int to write     * @throws	   java.io.IOException If an error occured while writing     */    abstract public void println(int x) throws IOException;    /**     * Print a long integer and then terminate the line.  This method behaves     * as though it invokes <code>{@link #print(long)}</code> and then     * <code>{@link #println()}</code>.     *     * @param      x the long to write     * @throws	   java.io.IOException If an error occured while writing     */    abstract public void println(long x) throws IOException;    /**     * Print a floating-point number and then terminate the line.  This method     * behaves as though it invokes <code>{@link #print(float)}</code> and then     * <code>{@link #println()}</code>.     *     * @param      x the float to write     * @throws	   java.io.IOException If an error occured while writing     */    abstract public void println(float x) throws IOException;    /**     * Print a double-precision floating-point number and then terminate the     * line.  This method behaves as though it invokes <code>{@link     * #print(double)}</code> and then <code>{@link #println()}</code>.     *     * @param      x the double to write     * @throws	   java.io.IOException If an error occured while writing     */    abstract public void println(double x) throws IOException;    /**     * Print an array of characters and then terminate the line.  This method     * behaves as though it invokes <code>print(char[])</code> and then     * <code>println()</code>.     *     * @param      x the char[] to write     * @throws	   java.io.IOException If an error occured while writing     */    abstract public void println(char x[]) throws IOException;    /**     * Print a String and then terminate the line.  This method behaves as     * though it invokes <code>{@link #print(String)}</code> and then     * <code>{@link #println()}</code>.     *     * @param      x the String to write     * @throws	   java.io.IOException If an error occured while writing     */    abstract public void println(String x) throws IOException;    /**     * Print an Object and then terminate the line.  This method behaves as     * though it invokes <code>{@link #print(Object)}</code> and then     * <code>{@link #println()}</code>.     *     * @param      x the Object to write     * @throws	   java.io.IOException If an error occured while writing     */    abstract public void println(Object x) throws IOException;    /**     * 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.     *     * @throws IOException		If an I/O error occurs     */    abstract public void clear() throws IOException;    /**     * Clears the current contents of the buffer. Unlike clear(), this     * method will not throw an IOException if the buffer has already been     * flushed. It merely clears the current _content of the buffer and     * returns.     *     * @throws IOException		If an I/O error occurs     */    abstract public void clearBuffer() throws IOException;    /**     * Flush the stream.  If the stream has saved any characters from the     * various write() methods in a buffer, write them immediately to their     * intended destination.  Then, if that destination is another character or     * byte stream, flush it.  Thus one flush() invocation will flush all the     * buffers in a chain of Writers and OutputStreams.     * <p>     * The method may be invoked indirectly if the buffer size is exceeded.     * <p>     * Once a stream has been closed,     * further write() or flush() invocations will cause an IOException to be     * thrown.     *     * @exception  IOException  If an I/O error occurs     */    abstract public void flush() throws IOException;    /**     * Close the stream, flushing it first.     * <p>     * This method needs not be invoked explicitly for the initial JspWriter     * as the code generated by the JSP container will automatically     * include a call to close().     * <p>     * Closing a previously-closed stream, unlike flush(), has no effect.     *     * @exception  IOException  If an I/O error occurs     */    abstract public void close() throws IOException;    /**     * This method returns the size of the buffer used by the JspWriter.     *     * @return the size of the buffer in bytes, or 0 is unbuffered.     */    public int getBufferSize() { return bufferSize; }    /**     * This method returns the number of unused bytes in the buffer.     *     * @return the number of bytes unused in the buffer     */    abstract public int getRemaining();    /**     * This method indicates whether the JspWriter is autoFlushing.     *     * @return if this JspWriter is auto flushing or throwing IOExceptions      *     on buffer overflow conditions     */    public boolean isAutoFlush() { return autoFlush; }    /*     * fields     */    /**     * The size of the buffer used by the JspWriter.     */    protected int     bufferSize;        /**     * Whether the JspWriter is autoflushing.     */    protected boolean autoFlush;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -