-/*******************************************************************************\r
- * Copyright (c) 2010, 2016 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- * VTT Technical Research Centre of Finland - initial API and implementation\r
- * Semantum Oy - Implement java.io.Closeable\r
- *******************************************************************************/\r
+/*******************************************************************************
+ * 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;\r
-import java.io.IOException;\r
-\r
-import org.simantics.databoard.file.RandomAccessBinaryList;\r
+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).
*
* @throws IOException
*/
- void flush() throws IOException;\r
- \r
- /**\r
- * Reset internal cache. Before reseting unwritten changes are flushed to \r
- * disc.\r
- */\r
+ void flush() throws IOException;
+
+ /**
+ * Reset internal cache. Before reseting unwritten changes are flushed to
+ * disc.
+ */
void reset() throws IOException;
- \r
- enum ByteSide { Left, Neither, Right }\r
+
+ 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\r
+ * @param bytes
* @param side
* @throws IOException
*/
*
* The operation does not move pointer.
*
- * @param bytes\r
+ * @param bytes
* @param side
* @throws IOException
*/
* Flush and close the blob.
*/
void close() throws IOException;
-\r
- /**\r
- * Check if binary is open.\r
- * \r
- * @return true if file is open\r
- */\r
+
+ /**
+ * Check if binary is open.
+ *
+ * @return true if file is open
+ */
boolean isOpen();
/**