
org.carrot2.util.resource.IResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of carrot2-mini Show documentation
Show all versions of carrot2-mini Show documentation
Carrot2 search results clustering framework. Minimal functional subset
(core algorithms and infrastructure, no document sources).
/*
* Carrot2 project.
*
* Copyright (C) 2002-2015, Dawid Weiss, Stanisław Osiński.
* All rights reserved.
*
* Refer to the full license file "carrot2.LICENSE"
* in the root folder of the repository checkout or at:
* http://www.carrot2.org/carrot2.LICENSE
*/
package org.carrot2.util.resource;
import java.io.IOException;
import java.io.InputStream;
import org.carrot2.util.attribute.IAssignable;
/**
* Resource abstraction. Override {@link Object#toString()} to have meaningful logging
* information at runtime.
*/
public interface IResource extends IAssignable
{
/**
* Open an input stream to the resource. Specific implementations may cache and close
* the underlying stream, but such behavior is not required by this interface. Please
* refer to the documentation of specific implementations for details.
*/
public InputStream open() throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy