Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.jaspersoft.jasperserver.war.common
Class FileBufferedOutputStream

    java.lang.Object
      java.io.OutputStream
          com.jaspersoft.jasperserver.war.common.FileBufferedOutputStream

All Implemented Interfaces:
  java.io.Closeable, java.io.Flushable

    public class FileBufferedOutputStream

extends java.io.OutputStream

Version:
  $Id: FileBufferedOutputStream.java 8408 2007-05-29 23:29:12Z melih $
Author:
  Lucian Chirita (lucianc@users.sourceforge.net)

Field Summary
`static int` | `DEFAULT_INITIAL_MEMORY_BUFFER_SIZE`
`static int` | `DEFAULT_INPUT_BUFFER_LENGTH`
`static int` | `DEFAULT_MEMORY_THRESHOLD`
`static int` | `INFINIT_MEMORY_THRESHOLD`

Constructor Summary
`FileBufferedOutputStream()`
`FileBufferedOutputStream(int memoryThreshold)`
`FileBufferedOutputStream(int memoryThreshold, int initialMemoryBufferSize)`
`FileBufferedOutputStream(int memoryThreshold, int initialMemoryBufferSize, int inputBufferLenght)`

Method Summary
`protected int` | `availableMemorySpace()`
`void` | `checkClosed()`
`void` | `close()`
`void` | `dispose()`
`protected java.io.BufferedOutputStream` | `ensureFileOutput()`
`protected void` | `finalize()`
`void` | `flush()`
`int` | `size()`
`void` | `write(byte[] b, int off, int len)`
`void` | `write(int b)`
`void` | `writeData(java.io.OutputStream out)`

Methods inherited from class java.io.OutputStream
`write`

Methods inherited from class java.lang.Object
`clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### DEFAULT_MEMORY_THRESHOLD

    public static final int DEFAULT_MEMORY_THRESHOLD

See Also:
  Constant Field Values

### INFINIT_MEMORY_THRESHOLD

    public static final int INFINIT_MEMORY_THRESHOLD

See Also:
  Constant Field Values

### DEFAULT_INITIAL_MEMORY_BUFFER_SIZE

    public static final int DEFAULT_INITIAL_MEMORY_BUFFER_SIZE

See Also:
  Constant Field Values

### DEFAULT_INPUT_BUFFER_LENGTH

    public static final int DEFAULT_INPUT_BUFFER_LENGTH

See Also:
  Constant Field Values

Constructor Detail

### FileBufferedOutputStream

    public FileBufferedOutputStream()

### FileBufferedOutputStream

    public FileBufferedOutputStream(int memoryThreshold)

### FileBufferedOutputStream

    public FileBufferedOutputStream(int memoryThreshold,
                                    int initialMemoryBufferSize)

### FileBufferedOutputStream

    public FileBufferedOutputStream(int memoryThreshold,
                                    int initialMemoryBufferSize,
                                    int inputBufferLenght)

Method Detail

### write

    public void write(int b)
               throws java.io.IOException

  Specified by:
    `write` in class `java.io.OutputStream`
  Throws:
    `java.io.IOException`

### availableMemorySpace

    protected int availableMemorySpace()

### ensureFileOutput

    protected java.io.BufferedOutputStream ensureFileOutput()
                                                     throws java.io.IOException,
                                                            java.io.FileNotFoundException

  Throws:
    `java.io.IOException`
    `java.io.FileNotFoundException`

### write

    public void write(byte[] b,
                      int off,
                      int len)
               throws java.io.IOException

  Overrides:
    `write` in class `java.io.OutputStream`
  Throws:
    `java.io.IOException`

### checkClosed

    public void checkClosed()

### close

    public void close()
               throws java.io.IOException

  Specified by:
    `close` in interface `java.io.Closeable`
  Overrides:
    `close` in class `java.io.OutputStream`
  Throws:
    `java.io.IOException`

### flush

    public void flush()
               throws java.io.IOException

  Specified by:
    `flush` in interface `java.io.Flushable`
  Overrides:
    `flush` in class `java.io.OutputStream`
  Throws:
    `java.io.IOException`

### size

    public int size()

### writeData

    public void writeData(java.io.OutputStream out)
                   throws java.io.IOException

  Throws:
    `java.io.IOException`

### dispose

    public void dispose()

### finalize

    protected void finalize()
                     throws java.lang.Throwable

  Overrides:
    `finalize` in class `java.lang.Object`
  Throws:
    `java.lang.Throwable`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007. All Rights Reserved.