Javadoc fine-tuning for 4.2
This commit is contained in:
@@ -24,7 +24,9 @@ import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
|
||||
/**
|
||||
* A speedy alternative to {@link java.io.ByteArrayOutputStream}.
|
||||
* A speedy alternative to {@link java.io.ByteArrayOutputStream}. Note that
|
||||
* this variant does <i>not</i> extend {@code ByteArrayOutputStream}, unlike
|
||||
* its sibling {@link ResizableByteArrayOutputStream}.
|
||||
*
|
||||
* <p>Unlike {@link java.io.ByteArrayOutputStream}, this implementation is backed
|
||||
* by a {@link java.util.LinkedList} of {@code byte[]} instead of 1 constantly
|
||||
@@ -35,9 +37,12 @@ import java.util.LinkedList;
|
||||
* with the {@link #writeTo(OutputStream)} method.
|
||||
*
|
||||
* @author Craig Andrews
|
||||
* @author Juergen Hoeller
|
||||
* @since 4.2
|
||||
* @see #resize
|
||||
* @see ResizableByteArrayOutputStream
|
||||
*/
|
||||
public final class FastByteArrayOutputStream extends OutputStream {
|
||||
public class FastByteArrayOutputStream extends OutputStream {
|
||||
|
||||
private static final int DEFAULT_BLOCK_SIZE = 256;
|
||||
|
||||
|
||||
@@ -35,6 +35,8 @@ import java.io.ByteArrayOutputStream;
|
||||
* @author Brian Clozel
|
||||
* @author Juergen Hoeller
|
||||
* @since 4.0.3
|
||||
* @see #resize
|
||||
* @see FastByteArrayOutputStream
|
||||
*/
|
||||
public class ResizableByteArrayOutputStream extends ByteArrayOutputStream {
|
||||
|
||||
|
||||
@@ -170,6 +170,7 @@ public class ContentCachingResponseWrapper extends HttpServletResponseWrapper {
|
||||
|
||||
/**
|
||||
* Return an {@link InputStream} to the cached content.
|
||||
* @since 4.2
|
||||
*/
|
||||
public InputStream getContentInputStream(){
|
||||
return this.content.getInputStream();
|
||||
@@ -177,6 +178,7 @@ public class ContentCachingResponseWrapper extends HttpServletResponseWrapper {
|
||||
|
||||
/**
|
||||
* Return the current size of the cached content.
|
||||
* @since 4.2
|
||||
*/
|
||||
public int getContentSize(){
|
||||
return this.content.size();
|
||||
@@ -184,6 +186,7 @@ public class ContentCachingResponseWrapper extends HttpServletResponseWrapper {
|
||||
|
||||
/**
|
||||
* Copy the complete cached body content to the response.
|
||||
* @since 4.2
|
||||
*/
|
||||
public void copyBodyToResponse() throws IOException {
|
||||
copyBodyToResponse(true);
|
||||
@@ -193,6 +196,7 @@ public class ContentCachingResponseWrapper extends HttpServletResponseWrapper {
|
||||
* Copy the cached body content to the response.
|
||||
* @param complete whether to set a corresponding content length
|
||||
* for the complete cached body content
|
||||
* @since 4.2
|
||||
*/
|
||||
protected void copyBodyToResponse(boolean complete) throws IOException {
|
||||
if (this.content.size() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user