public interface GeneratedFile
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
java.lang.CharSequence |
getTextContent()
Gets the character content of this file object, if available.
|
java.io.InputStream |
openInputStream()
Gets an InputStream for this file object.
|
java.io.OutputStream |
openOutputStream()
Gets an OutputStream for this file object.
|
java.io.Reader |
openReader()
Gets a reader for this object.
|
java.io.Writer |
openWriter()
Gets a Writer for this file object.
|
java.net.URI |
toURI()
The URI to write to.
|
java.net.URI toURI()
java.lang.String getName()
java.io.InputStream openInputStream()
throws java.io.IOException
java.lang.IllegalStateException - if this file object was opened for writing and does not support readingjava.lang.UnsupportedOperationException - if this kind of file object does not support byte accessjava.io.IOException - if an I/O error occurredjava.io.OutputStream openOutputStream()
throws java.io.IOException
java.lang.IllegalStateException - if this file object was opened for reading and does not support writingjava.lang.UnsupportedOperationException - if this kind of file object does not support byte accessjava.io.IOException - if an I/O error occurredjava.io.Reader openReader()
throws java.io.IOException
ignoreEncodingErrors
is true.java.lang.IllegalStateException - if this file object was opened for writing and does not support readingjava.lang.UnsupportedOperationException - if this kind of file object does not support character accessjava.io.IOException - if an I/O error occurredjava.lang.CharSequence getTextContent()
throws java.io.IOException
ignoreEncodingErrors is true.null otherwisejava.lang.IllegalStateException - if this file object was opened for writing and does not support readingjava.lang.UnsupportedOperationException - if this kind of file object does not support character accessjava.io.IOException - if an I/O error occurredjava.io.Writer openWriter()
throws java.io.IOException
java.lang.IllegalStateException - if this file object was opened for reading and does not support writingjava.lang.UnsupportedOperationException - if this kind of file object does not support character accessjava.io.IOException - if an I/O error occurred