com.stimulsoft.base.utils
Class StiOutputStreamWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.OutputStreamWriter
          extended by com.stimulsoft.base.utils.StiOutputStreamWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class StiOutputStreamWriter
extends java.io.OutputStreamWriter

OutputStream wrapper Copyright Stimulsoft


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
StiOutputStreamWriter(java.io.OutputStream out)
           
StiOutputStreamWriter(java.io.OutputStream out, java.nio.charset.Charset cs)
           
StiOutputStreamWriter(java.io.OutputStream out, java.nio.charset.CharsetEncoder enc)
           
StiOutputStreamWriter(java.io.OutputStream out, java.lang.String charsetName)
           
 
Method Summary
 void flush()
           
 long getPosition()
          Cet current position
 void incPosition(int value)
           
 void write(int c)
           
 void write(java.lang.String str)
           
 void write(java.lang.String str, int off, int len)
           
 void write(java.lang.String st, java.lang.Object... args)
          Write text with formatting
 void writeLine(java.lang.String st)
          Write text with new line
 void writeLine(java.lang.String st, java.lang.Object... args)
          Write text with new line & formattion
 
Methods inherited from class java.io.OutputStreamWriter
close, getEncoding, write
 
Methods inherited from class java.io.Writer
append, append, append, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StiOutputStreamWriter

public StiOutputStreamWriter(java.io.OutputStream out,
                             java.nio.charset.Charset cs)

StiOutputStreamWriter

public StiOutputStreamWriter(java.io.OutputStream out,
                             java.nio.charset.CharsetEncoder enc)

StiOutputStreamWriter

public StiOutputStreamWriter(java.io.OutputStream out,
                             java.lang.String charsetName)
                      throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

StiOutputStreamWriter

public StiOutputStreamWriter(java.io.OutputStream out)
Method Detail

writeLine

public void writeLine(java.lang.String st)
               throws java.io.IOException
Write text with new line

Parameters:
st -
Throws:
java.io.IOException

writeLine

public void writeLine(java.lang.String st,
                      java.lang.Object... args)
               throws java.io.IOException
Write text with new line & formattion

Parameters:
st -
args -
Throws:
java.io.IOException

write

public void write(java.lang.String st,
                  java.lang.Object... args)
           throws java.io.IOException
Write text with formatting

Parameters:
st -
args -
Throws:
java.io.IOException

write

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

write

public void write(java.lang.String str,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStreamWriter
Throws:
java.io.IOException

write

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

getPosition

public long getPosition()
Cet current position

Returns:
Current position

incPosition

public void incPosition(int value)

flush

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


Copyright © 2018 Stimulsoft. All Rights Reserved.