01: // ImageFileResource.java
02: // $Id: ImageFileResource.java,v 1.2 2003/01/24 14:59:55 cbournez Exp $
03: // (c) COPYRIGHT MIT, INRIA and Keio, 1999.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.jigsaw.resources;
07:
08: import org.w3c.tools.resources.FileResource;
09: import java.io.InputStream;
10: import java.io.IOException;
11:
12: public abstract class ImageFileResource extends FileResource {
13:
14: /**
15: * Save the given stream as the underlying image comment content.
16: * This method preserve the old file version in a <code>~</code> file.
17: * @param in The input stream to use as the resource entity.
18: * @return A boolean, <strong>true</strong> if the resource was just
19: * created, <strong>false</strong> otherwise.
20: * @exception IOException If dumping the content failed.
21: */
22: public abstract boolean newMetadataContent(InputStream in)
23: throws IOException;
24:
25: }
|