Content Assembler API 2.1.2

com.endeca.content.assembler
Interface ContentResource


public interface ContentResource

Interface for a source of raw content XML. This allows the content itself to be abstracted away from its source.

Since:
2.1.0
Version:
2.1.0

Method Summary
 java.lang.String getIdentifier()
          Returns a unique identifier for this resource.
 java.util.Date getLastModified()
          Returns the date on which this content resource was last modified.
 java.io.InputStream openStream()
          Returns a stream which may be used to retrieve the content for this resource.
 

Method Detail

getIdentifier

java.lang.String getIdentifier()
Returns a unique identifier for this resource.

Returns:
The identifier.

getLastModified

java.util.Date getLastModified()
Returns the date on which this content resource was last modified.

Returns:
The date this resource was last modified.

openStream

java.io.InputStream openStream()
                               throws java.io.IOException
Returns a stream which may be used to retrieve the content for this resource.

Returns:
The content stream.
Throws:
java.io.IOException - If the stream could not be opened.

Content Assembler API 2.1.2

Copyright © 2012 Endeca Technologies, Inc. All Rights Reserved.
@VERSION
PRODUCT: Content Assembler API (ContentAssemblerAPIJava)
VERSION: 2.1.2
BUILD:   54DEV
ARCH_OS: n/a
DATE:    2012-02-16T20:28:44-0500