org.exist.source
Class CocoonSource
java.lang.Object
org.exist.source.AbstractSource
org.exist.source.CocoonSource
- All Implemented Interfaces:
- Source
public class CocoonSource
- extends AbstractSource
A source that wraps around a Cocoon source object.
- Author:
- wolf
Constructor Summary |
CocoonSource(org.apache.excalibur.source.Source source,
boolean checkXQEncoding)
|
CocoonSource
public CocoonSource(org.apache.excalibur.source.Source source,
boolean checkXQEncoding)
isValid
public int isValid(DBBroker broker)
- Description copied from interface:
Source
- Is this source object still valid?
Returns
Source.UNKNOWN
if the validity of
the source cannot be determined.
The DBBroker
parameter is required by
some implementations as they have to read
resources from the database.
isValid
public int isValid(Source other)
- Description copied from interface:
Source
- Checks if the source object is still valid
by comparing it to another version of the
same source. It depends on the concrete
implementation how the sources are compared.
Use this method if
Source.isValid(DBBroker)
return Source.UNKNOWN
.
getReader
public Reader getReader()
throws IOException
- Description copied from interface:
Source
- Returns a
Reader
to read the contents
of the source.
- Throws:
IOException
getContent
public String getContent()
throws IOException
- Throws:
IOException
getKey
public Object getKey()
- Description copied from interface:
Source
- Returns a unique key to identify the source, usually
an URI.
getWrappedSource
public org.apache.excalibur.source.Source getWrappedSource()
Copyright (C) Wolfgang Meier. All rights reserved.