private class Request.ContentOutputStream extends OutputStream
Modifier | Constructor and Description |
---|---|
private |
ContentOutputStream() |
Modifier and Type | Method and Description |
---|---|
private void |
checkOpen()
Checks to make sure stream is open and startOutput has been called.
|
void |
close() |
private void |
close(boolean checkAbort)
Attempts to close stream.
|
void |
flush() |
private void |
invalidate(Throwable cause)
Invalidates stream, saving cause.
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
write
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
private void checkOpen() throws IOException
IOException
private void close(boolean checkAbort) throws IOException
IOException
private void invalidate(Throwable cause) throws IOException
IOException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.