com.stimulsoft.base.utils
Class StiOutputStreamWriter
java.lang.Object
java.io.Writer
java.io.OutputStreamWriter
com.stimulsoft.base.utils.StiOutputStreamWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class StiOutputStreamWriter
- extends OutputStreamWriter
OutputStream wrapper
Copyright Stimulsoft
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StiOutputStreamWriter
public StiOutputStreamWriter(OutputStream out,
Charset cs)
StiOutputStreamWriter
public StiOutputStreamWriter(OutputStream out,
CharsetEncoder enc)
StiOutputStreamWriter
public StiOutputStreamWriter(OutputStream out,
String charsetName)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
StiOutputStreamWriter
public StiOutputStreamWriter(OutputStream out)
writeLine
public void writeLine(String st)
throws IOException
- Write text with new line
- Parameters:
st -
- Throws:
IOException
writeLine
public void writeLine(String st,
Object... args)
throws IOException
- Write text with new line & formattion
- Parameters:
st - args -
- Throws:
IOException
write
public void write(String st,
Object... args)
throws IOException
- Write text with formatting
- Parameters:
st - args -
- Throws:
IOException
write
public void write(int c)
throws IOException
- Overrides:
write in class OutputStreamWriter
- Throws:
IOException
write
public void write(String str,
int off,
int len)
throws IOException
- Overrides:
write in class OutputStreamWriter
- Throws:
IOException
write
public void write(String str)
throws IOException
- Overrides:
write in class Writer
- Throws:
IOException
getPosition
public long getPosition()
- Cet current position
- Returns:
- Current position
incPosition
public void incPosition(int value)
flush
public void flush()
throws IOException
- Specified by:
flush in interface Flushable- Overrides:
flush in class OutputStreamWriter
- Throws:
IOException
Copyright © 2017 Stimulsoft. All Rights Reserved.