fr.gouv.culture.sdx.oai
Class OAIEnvelopStripper

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.xml.AbstractXMLProducer
          extended byorg.apache.cocoon.xml.AbstractXMLPipe
              extended byfr.gouv.culture.sdx.oai.OAIEnvelopStripper
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, org.apache.cocoon.xml.XMLConsumer, org.apache.excalibur.xml.sax.XMLConsumer, org.apache.cocoon.xml.XMLPipe, org.apache.cocoon.xml.XMLProducer

public class OAIEnvelopStripper
extends org.apache.cocoon.xml.AbstractXMLPipe

OAI elements characterizing a harvest must be removed to recover the original document.

Author:
Malo Pichot

Field Summary
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, lexicalHandler, xmlConsumer
 
Constructor Summary
OAIEnvelopStripper()
           
 
Method Summary
 void characters(char[] chars, int start, int length)
          Activate the copy of the content if needed
 void endElement(java.lang.String namespace, java.lang.String name, java.lang.String qualifiedName)
          Activate the copy of the end element if needed
 void startElement(java.lang.String namespace, java.lang.String name, java.lang.String qualifiedName, org.xml.sax.Attributes attributes)
          Activate the copy of the start element if needed
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe
comment, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
recycle, setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
 

Constructor Detail

OAIEnvelopStripper

public OAIEnvelopStripper()
Method Detail

characters

public void characters(char[] chars,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Activate the copy of the content if needed

Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String namespace,
                       java.lang.String name,
                       java.lang.String qualifiedName)
                throws org.xml.sax.SAXException
Activate the copy of the end element if needed

Throws:
org.xml.sax.SAXException

startElement

public void startElement(java.lang.String namespace,
                         java.lang.String name,
                         java.lang.String qualifiedName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Activate the copy of the start element if needed

Throws:
org.xml.sax.SAXException


Copyright © 2000-2003 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.