All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nmote.iim4j.stream.IIMInputStream Maven / Gradle / Ivy

Go to download

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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy