100 |
|
|
101 |
/** Get the <code>Block</code> created by this stream. |
/** Get the <code>Block</code> created by this stream. |
102 |
* This may only be called after the stream has been closed. |
* This may only be called after the stream has been closed. |
103 |
|
* @throws IllegalStateException if the stream isn't closed yet. |
104 |
*/ |
*/ |
105 |
abstract public Block getBlock() throws IOException; |
abstract public Block getBlock() throws IOException, IllegalStateException; |
106 |
|
|
107 |
/** Get the id of the block created by this stream. |
/** Get the id of the block created by this stream. |
108 |
* This may only be called after the stream has been closed. |
* This may only be called after the stream has been closed. |
109 |
|
* @throws IllegalStateException if the stream isn't closed yet. |
110 |
*/ |
*/ |
111 |
public BlockId getBlockId() throws IOException { |
public BlockId getBlockId() throws IOException, IllegalStateException { |
112 |
return getBlock().getId(); |
return getBlock().getId(); |
113 |
} |
} |
114 |
} |
} |