X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Faccessor%2FStreamAccessor.java;h=b1271c91398272cfbf5a2601ecd5292bb2a16888;hb=48bb50bb6640506d1f150ca8e4fa5a6e878464be;hp=fcfb890493276b982ab426e30676030f9c04c971;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git 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; + +}