Class DefaultFileSystem.HttpOutputStream
java.lang.Object
java.io.OutputStream
org.apache.commons.configuration2.io.VerifiableOutputStream
org.apache.commons.configuration2.io.DefaultFileSystem.HttpOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
- DefaultFileSystem
Wraps the output stream so errors can be detected in the HTTP response.
- Since:
- 1.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HttpURLConnection
The HttpURLConnectionprivate final OutputStream
The wrapped OutputStream -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
stream
The wrapped OutputStream -
connection
The HttpURLConnection
-
-
Constructor Details
-
HttpOutputStream
-
-
Method Details
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
toString
-
verify
- Specified by:
verify
in classVerifiableOutputStream
- Throws:
IOException
-