litesoft
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt
package org.litesoft.util;
import java.io.*;
import java.util.*;
public interface StreamAccessor
{
public boolean isReadable();
public boolean isWritable();
/**
* @return !null
*
* @throws IllegalStateException - if not Readable
* @throws MissingResourceException - if resource not found
* @throws IOException - any other IOException
*/
public InputStream readOpen()
throws IllegalStateException, MissingResourceException, IOException;
/**
* @return !null
*
* @throws UnsupportedOperationException - if not Writable (ie already written)
* @throws IllegalStateException - if something required for writing is missing
* @throws IOException - any other IOException
*/
public OutputStream writeOpen()
throws UnsupportedOperationException, IllegalStateException, IOException;
}
|