Package org.wildfly.security.util
Class AtomicFileOutputStream.OpenState
- java.lang.Object
-
- org.wildfly.security.util.AtomicFileOutputStream.State
-
- org.wildfly.security.util.AtomicFileOutputStream.OpenState
-
- Enclosing class:
- AtomicFileOutputStream
final class AtomicFileOutputStream.OpenState extends AtomicFileOutputStream.State
-
-
Field Summary
Fields Modifier and Type Field Description private OutputStream
delegate
private Path
path
-
Constructor Summary
Constructors Constructor Description OpenState(OutputStream delegate, Path path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
cancel()
(package private) void
close()
(package private) void
flush()
(package private) void
write(byte[] b, int off, int len)
(package private) void
write(int b)
-
-
-
Field Detail
-
delegate
private final OutputStream delegate
-
path
private final Path path
-
-
Constructor Detail
-
OpenState
OpenState(OutputStream delegate, Path path)
-
-
Method Detail
-
write
void write(int b) throws IOException
- Specified by:
write
in classAtomicFileOutputStream.State
- Throws:
IOException
-
write
void write(byte[] b, int off, int len) throws IOException
- Specified by:
write
in classAtomicFileOutputStream.State
- Throws:
IOException
-
flush
void flush() throws IOException
- Specified by:
flush
in classAtomicFileOutputStream.State
- Throws:
IOException
-
close
void close() throws IOException
- Specified by:
close
in classAtomicFileOutputStream.State
- Throws:
IOException
-
cancel
void cancel() throws IOException
- Specified by:
cancel
in classAtomicFileOutputStream.State
- Throws:
IOException
-
-