com.nmote.iim4j.stream.IIMInputStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nmote-iim4j Show documentation
Show all versions of nmote-iim4j Show documentation
IIM4J allows Java programmers to read, write and process IPTC IIM version 4 files.
The newest version!
/*
* Copyright (c) Nmote Ltd. 2004-2015. All rights reserved.
* See LICENSE doc in a root of project folder for additional information.
*/
package com.nmote.iim4j.stream;
import java.io.IOException;
/**
* IIMInputStream is specialized seekable input stream used by IIMParser.
*/
public interface IIMInputStream {
/**
* Returns true if stream is cached (can be rewind to previous position).
*
* @return true if stream is cached
*/
boolean isCached();
void seek(long position) throws IOException;
long position() throws IOException;
int read() throws IOException;
int read(byte[] buffer) throws IOException;
int read(byte[] buffer, int offset, int length) throws IOException;
void close() throws IOException;
}