X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Faccessor%2FStreamAccessor.java;h=b1271c91398272cfbf5a2601ecd5292bb2a16888;hp=fcfb890493276b982ab426e30676030f9c04c971;hb=refs%2Fchanges%2F38%2F238%2F2;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/StreamAccessor.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/StreamAccessor.java index fcfb89049..b1271c913 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/StreamAccessor.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/StreamAccessor.java @@ -1,35 +1,35 @@ -/******************************************************************************* - * Copyright (c) 2007, 2011 Association for Decentralized Information Management in - * Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.databoard.accessor; - -import org.simantics.databoard.accessor.error.AccessorException; -import org.simantics.databoard.accessor.file.FileArrayAccessor; - -public interface StreamAccessor extends ArrayAccessor, FileArrayAccessor, CloseableAccessor { - - void flush() throws AccessorException; - - /** - * Close the accessor. - * - * @throws AccessorException - */ - void close() throws AccessorException; - - /** - * Reset internal buffer. If there unwritten changes, they are flushed. - * - * @throws AccessorException - */ - void reset() throws AccessorException; - -} +/******************************************************************************* + * Copyright (c) 2007, 2011 Association for Decentralized Information Management in + * Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.databoard.accessor; + +import org.simantics.databoard.accessor.error.AccessorException; +import org.simantics.databoard.accessor.file.FileArrayAccessor; + +public interface StreamAccessor extends ArrayAccessor, FileArrayAccessor, CloseableAccessor { + + void flush() throws AccessorException; + + /** + * Close the accessor. + * + * @throws AccessorException + */ + void close() throws AccessorException; + + /** + * Reset internal buffer. If there unwritten changes, they are flushed. + * + * @throws AccessorException + */ + void reset() throws AccessorException; + +}