27 |
*/ |
*/ |
28 |
package org.nongnu.storm; |
package org.nongnu.storm; |
29 |
|
|
|
import org.nongnu.storm.headers.*; |
|
30 |
import java.io.*; |
import java.io.*; |
31 |
import java.util.*; |
import java.util.*; |
32 |
|
|
33 |
/** A Storm Storm pool of blocks. |
/** A Storm pool of blocks. |
34 |
*/ |
*/ |
35 |
public interface StormPool { |
public interface StormPool { |
36 |
|
|
148 |
// CREATING NEW BLOCKS |
// CREATING NEW BLOCKS |
149 |
|
|
150 |
/** Get an <code>OutputStream</code> for adding a new block to this pool. |
/** Get an <code>OutputStream</code> for adding a new block to this pool. |
|
* A new <code>UniqueHeader822</code> with the specified MIME content type |
|
|
* is used. |
|
151 |
* @see BlockOutputStream |
* @see BlockOutputStream |
152 |
*/ |
*/ |
153 |
BlockOutputStream getBlockOutputStream(String contentType) |
BlockOutputStream getBlockOutputStream(String contentType); |
|
throws IOException; |
|
|
|
|
|
/** Get an <code>OutputStream</code> for adding a new block to this pool. |
|
|
* The header for the new block is passed explicitly. |
|
|
* @see BlockOutputStream |
|
|
*/ |
|
|
BlockOutputStream getBlockOutputStream(Header822 hdr) throws IOException; |
|
|
|
|
|
|
|
|
// GETTING POOL NAMES |
|
|
|
|
|
/** This is currently not implemented and probably requires more thought. |
|
|
* When the time comes to replace Mediaserver with Storm, we'll see |
|
|
* how to implement the things currently done through pool names; |
|
|
* these functions might be resurrected, replaced by something else, |
|
|
* or simply gotten rid of if they are not (at that time) needed. |
|
|
* - Benja |
|
|
*/ |
|
|
|
|
|
///** Get the name of the pool new blocks are put into by default. |
|
|
// */ |
|
|
//String getDefaultPoolName() throws IOException; |
|
|
//Set getPoolNames() throws IOException; |
|
154 |
} |
} |