//# 0 errors, 16 messages
//#
/*
    //#Resource.java:1:1: class: org.apache.roller.weblogger.pojos.Resource
    //#Resource.java:1:1: method: org.apache.roller.weblogger.pojos.Resource.org.apache.roller.weblogger.pojos.Resource__static_init
 * Licensed to the Apache Software Foundation (ASF) under one or more
 *  contributor license agreements.  The ASF licenses this file to You
 * under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.  For additional information regarding
 * copyright in this work, please see the NOTICE file in the top level
 * directory of this distribution.
 */

package org.apache.roller.weblogger.pojos;

import java.io.InputStream;


/**
 * Represents a static resource of some kind.
 */
public interface Resource {
    
    
    /**
     * The short name of this resource.
     * i.e. "some.jpg"
     *
     * @returns The short name for the resource.
     */
    public String getName();
    
    
    /**
     * The path to this resource, relative to its container.
     * i.e. "images/some.jpg"
     *
     * @returns The path to the resource, relative to its container.
     */
    public String getPath();
    
    
    /**
     * The last-modified time for this resource.
     *
     * @returns The last time the resource changed, as a long value.
     */
    public long getLastModified();
    
    
    /**
     * The length of this resource, in bytes.
     *
     * @returns The length of the resource in bytes.
     */
    public long getLength();
    
    
    /**
     * An InputStream that the resource can be read from.
     *
     * @returns an InputStream for the resource.
     */
    public InputStream getInputStream();
    
}
    //#output(org.apache.roller.weblogger.pojos.Resource__static_init): __Descendant_Table[org/apache/roller/weblogger/pojos/Resource]
    //#output(org.apache.roller.weblogger.pojos.Resource__static_init): __Dispatch_Table.getInputStream()Ljava/io/InputStream;
    //#output(org.apache.roller.weblogger.pojos.Resource__static_init): __Dispatch_Table.getLastModified()J
    //#output(org.apache.roller.weblogger.pojos.Resource__static_init): __Dispatch_Table.getLength()J
    //#output(org.apache.roller.weblogger.pojos.Resource__static_init): __Dispatch_Table.getName()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.pojos.Resource__static_init): __Dispatch_Table.getPath()Ljava/lang/String;
    //#post(org.apache.roller.weblogger.pojos.Resource__static_init): __Descendant_Table[org/apache/roller/weblogger/pojos/Resource] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.pojos.Resource__static_init): __Dispatch_Table.getInputStream()Ljava/io/InputStream; == &getInputStream
    //#post(org.apache.roller.weblogger.pojos.Resource__static_init): __Dispatch_Table.getLastModified()J == &getLastModified
    //#post(org.apache.roller.weblogger.pojos.Resource__static_init): __Dispatch_Table.getLength()J == &getLength
    //#post(org.apache.roller.weblogger.pojos.Resource__static_init): __Dispatch_Table.getName()Ljava/lang/String; == &getName
    //#post(org.apache.roller.weblogger.pojos.Resource__static_init): __Dispatch_Table.getPath()Ljava/lang/String; == &getPath
    //#Resource.java:: end of method: org.apache.roller.weblogger.pojos.Resource.org.apache.roller.weblogger.pojos.Resource__static_init
    //#Resource.java:: end of class: org.apache.roller.weblogger.pojos.Resource
