Interface MultiStreamDataSource
-
- All Superinterfaces:
DataSource
public interface MultiStreamDataSource extends DataSource
A data source with multiple input streams, each identified by a unique name. FolderDataSource may serve as a good example of a concrete implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandelete(String name)Iterable<String>getAvailableStreams()InputStreamopenInputStream(String name)Access named stream for reading.OutputStreamopenOutputStream(String name)Access named stream for writing.-
Methods inherited from interface org.jetbrains.mps.openapi.persistence.DataSource
addListener, getLocation, getTimestamp, getType, isReadOnly, removeListener
-
-
-
-
Method Detail
-
openInputStream
@NotNull InputStream openInputStream(String name) throws IOException
Access named stream for reading. Caller is responsible to close the stream once done.- Parameters:
name- name of the stream to read // fixme what does it mean -- the name???- Returns:
- stream to read from, never
null - Throws:
IOException- if failed to open given named stream
-
openOutputStream
@NotNull OutputStream openOutputStream(String name) throws IOException
Access named stream for writing. Caller is responsible to close the stream once done.- Parameters:
name- name of the stream to write- Returns:
- stream to write to, never
null - Throws:
IOException
-
delete
boolean delete(String name)
-
-