public static class URIConverter.WriteableOutputStream extends java.io.OutputStream implements URIConverter.Writeable
Modifier and Type | Class and Description |
---|---|
protected class |
URIConverter.WriteableOutputStream.Buffer |
Modifier and Type | Field and Description |
---|---|
protected URIConverter.WriteableOutputStream.Buffer |
buffer |
protected java.lang.String |
encoding |
protected java.io.Writer |
writer |
Constructor and Description |
---|
URIConverter.WriteableOutputStream(java.io.Writer writer,
java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
java.io.Writer |
asWriter()
Returns a writer that provides access to the same underlying data as the input stream itself.
|
void |
close() |
void |
flush() |
java.lang.String |
getEncoding()
Returns the encoding used to convert the writer's bytes to characters.
|
void |
write(int b) |
protected java.lang.String encoding
protected java.io.Writer writer
protected URIConverter.WriteableOutputStream.Buffer buffer
public URIConverter.WriteableOutputStream(java.io.Writer writer, java.lang.String encoding)
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public java.io.Writer asWriter()
URIConverter.Writeable
asWriter
in interface URIConverter.Writeable
public java.lang.String getEncoding()
URIConverter.Writeable
getEncoding
in interface URIConverter.Writeable
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException