]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/StreamAccessor.java
Added addFirst/After/Before + remove SCL functions for Ordered Sets
[simantics/platform.git] / bundles / org.simantics.databoard / src / org / simantics / databoard / accessor / StreamAccessor.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2011 Association for Decentralized Information Management in
3  * Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.databoard.accessor;
13
14 import org.simantics.databoard.accessor.error.AccessorException;
15 import org.simantics.databoard.accessor.file.FileArrayAccessor;
16
17 public interface StreamAccessor extends ArrayAccessor, FileArrayAccessor, CloseableAccessor {
18
19         void flush() throws AccessorException;
20         
21         /**
22          * Close the accessor.  
23          * 
24          * @throws AccessorException
25          */
26         void close() throws AccessorException;
27                 
28         /**
29          * Reset internal buffer. If there unwritten changes, they are flushed.
30          * 
31          * @throws AccessorException
32          */
33         void reset() throws AccessorException;
34         
35 }