de.uplanet.lucy.server.connector.web
Class OutgoingWireProtocolOutputWriter

java.lang.Object
  extended by java.io.Writer
      extended by de.uplanet.lucy.server.connector.web.OutgoingWireProtocolOutputWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public final class OutgoingWireProtocolOutputWriter
extends java.io.Writer

Version:
$Revision: 49132 $

Constructor Summary
OutgoingWireProtocolOutputWriter(OutgoingWireProtocolOutputStream p_out, java.nio.charset.Charset p_chset)
           
 
Method Summary
 void close()
           
 void flush()
           
 void flushHttpHeaders()
           
 boolean getIgnoreWrite()
          Get the ignore-write flag.
 boolean isStreaming()
           
 void reset()
           
 void setIgnoreWrite(boolean p_bIgnoreWrite)
          Set or unset the ignore-write flag.
 void setStreaming()
           
 void write(char[] p_buf)
           
 void write(char[] p_buf, int p_iOffs, int p_iLen)
           
 void write(int p_iChar)
           
 void write(java.lang.String p_str)
           
 void write(java.lang.String p_str, int p_iOffs, int p_iLen)
           
 void writeHttpHeader(java.lang.String p_strName, java.lang.String p_strValue)
           
 void writeHttpStatus(int p_iStatus, java.lang.String p_strStatus)
           
 
Methods inherited from class java.io.Writer
append, append, append
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutgoingWireProtocolOutputWriter

public OutgoingWireProtocolOutputWriter(OutgoingWireProtocolOutputStream p_out,
                                        java.nio.charset.Charset p_chset)
Parameters:
p_out - The underlying output stream.
p_chset - The character set to be used for conversions.
Method Detail

isStreaming

public boolean isStreaming()
See Also:
OutgoingWireProtocolOutputStream.isStreaming()

setStreaming

public void setStreaming()
                  throws java.io.IOException
Throws:
java.io.IOException
See Also:
OutgoingWireProtocolOutputStream.setStreaming()

getIgnoreWrite

public boolean getIgnoreWrite()
Get the ignore-write flag.


setIgnoreWrite

public void setIgnoreWrite(boolean p_bIgnoreWrite)
Set or unset the ignore-write flag.


writeHttpStatus

public void writeHttpStatus(int p_iStatus,
                            java.lang.String p_strStatus)
                     throws java.io.IOException
Throws:
java.io.IOException

writeHttpHeader

public void writeHttpHeader(java.lang.String p_strName,
                            java.lang.String p_strValue)
                     throws java.io.IOException
Throws:
java.io.IOException

flushHttpHeaders

public void flushHttpHeaders()
                      throws java.io.IOException
Throws:
java.io.IOException

write

public void write(int p_iChar)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(char[] p_buf)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(char[] p_buf,
                  int p_iOffs,
                  int p_iLen)
           throws java.io.IOException
Specified by:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(java.lang.String p_str)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(java.lang.String p_str,
                  int p_iOffs,
                  int p_iLen)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in class java.io.Writer
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Specified by:
flush in class java.io.Writer
Throws:
java.io.IOException

reset

public void reset()
Throws:
java.lang.IllegalStateException - - If this stream is in streaming mode, or data were already committed.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.