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