--- /dev/null
+package org.simantics.db.service;\r
+\r
+public interface ByteReader {\r
+ /*\r
+ * Reads bytes from data source.\r
+ * \r
+ * Assumes that enough bytes are available.\r
+ * \r
+ * Uses and returns the supplied buffer.\r
+ * \r
+ * Allocates a new buffer if null buffer is supplied.\r
+ * \r
+ */\r
+ byte[] readBytes(byte[] buffer, int amount);\r
+}
\ No newline at end of file