X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Futil%2Fbinary%2FRandomAccessBinary.java;h=d224ee475baf30775517acd43b2399f3ab77e2dd;hb=refs%2Fchanges%2F22%2F2422%2F4;hp=4e535905a96f64a238f05ad36f981c567f215a91;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/util/binary/RandomAccessBinary.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/util/binary/RandomAccessBinary.java index 4e535905a..d224ee475 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/util/binary/RandomAccessBinary.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/util/binary/RandomAccessBinary.java @@ -1,21 +1,21 @@ -/******************************************************************************* - * Copyright (c) 2010, 2016 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 - * Semantum Oy - Implement java.io.Closeable - *******************************************************************************/ +/******************************************************************************* + * Copyright (c) 2010, 2016 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 + * Semantum Oy - Implement java.io.Closeable + *******************************************************************************/ package org.simantics.databoard.util.binary; -import java.io.Closeable; -import java.io.IOException; - -import org.simantics.databoard.file.RandomAccessBinaryList; +import java.io.Closeable; +import java.io.IOException; + +import org.simantics.databoard.file.RandomAccessBinaryList; /** * Random access binary is a interface to access a binary object (BLOB). @@ -38,21 +38,21 @@ public interface RandomAccessBinary extends Closeable, BinaryWriteable, BinaryRe * * @throws IOException */ - void flush() throws IOException; - - /** - * Reset internal cache. Before reseting unwritten changes are flushed to - * disc. - */ + void flush() throws IOException; + + /** + * Reset internal cache. Before reseting unwritten changes are flushed to + * disc. + */ void reset() throws IOException; - - enum ByteSide { Left, Neither, Right } + + enum ByteSide { Left, Neither, Right } /** * Remove bytes from the position of the current pointer. If the pointer is * outside the blob, an error is thrown. * - * @param bytes + * @param bytes * @param side * @throws IOException */ @@ -64,7 +64,7 @@ public interface RandomAccessBinary extends Closeable, BinaryWriteable, BinaryRe * * The operation does not move pointer. * - * @param bytes + * @param bytes * @param side * @throws IOException */ @@ -90,12 +90,12 @@ public interface RandomAccessBinary extends Closeable, BinaryWriteable, BinaryRe * Flush and close the blob. */ void close() throws IOException; - - /** - * Check if binary is open. - * - * @return true if file is open - */ + + /** + * Check if binary is open. + * + * @return true if file is open + */ boolean isOpen(); /**