fr.gouv.culture.sdx.document
Class BinaryDocument

java.lang.Object
  extended byfr.gouv.culture.sdx.utils.SdxObjectImpl
      extended byfr.gouv.culture.sdx.document.AbstractDocument
          extended byfr.gouv.culture.sdx.document.BinaryDocument
All Implemented Interfaces:
Document, org.apache.avalon.framework.logger.LogEnabled, SdxObject

public class BinaryDocument
extends AbstractDocument


Field Summary
static java.lang.String DEFAULT_MIMETYPE
          String representation of the default mimetype for our attached documents.
 
Fields inherited from class fr.gouv.culture.sdx.document.AbstractDocument
idGenerator, idPrefix, idSuffix, mimeType, storeRepo
 
Fields inherited from class fr.gouv.culture.sdx.utils.SdxObjectImpl
encoding, logger
 
Fields inherited from interface fr.gouv.culture.sdx.document.Document
DOCTYPE_BINARY, DOCTYPE_GROUP, DOCTYPE_HTML, DOCTYPE_USER, DOCTYPE_XML
 
Constructor Summary
BinaryDocument()
          Convenience constructor for document deletion
BinaryDocument(java.lang.String docId, java.net.URL url, java.lang.String mimetype)
          Builds a Binary document and set's the necessary fields
 
Method Summary
 java.lang.String getDocType()
          Gets the docType for the document
 
Methods inherited from class fr.gouv.culture.sdx.document.AbstractDocument
getId, getInputSource, getLength, getMimeType, getPreferredFilename, getRepositoryForStorage, getURL, openStream, save, setContent, setContent, setContent, setContent, setId, setIdGenerator, setIdGenerator, setMimeType, setPreferredFilename, setPreferredFilename, setRepositoryForStorage, setURL
 
Methods inherited from class fr.gouv.culture.sdx.utils.SdxObjectImpl
enableLogging, getChildLogger, setEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled
enableLogging
 

Field Detail

DEFAULT_MIMETYPE

public static final java.lang.String DEFAULT_MIMETYPE
String representation of the default mimetype for our attached documents.

See Also:
Constant Field Values
Constructor Detail

BinaryDocument

public BinaryDocument()
Convenience constructor for document deletion


BinaryDocument

public BinaryDocument(java.lang.String docId,
                      java.net.URL url,
                      java.lang.String mimetype)
               throws SDXException
Builds a Binary document and set's the necessary fields

Parameters:
docId - The document id
url - The url of this document
mimetype - The mimetype String
Throws:
SDXException
Method Detail

getDocType

public java.lang.String getDocType()
Gets the docType for the document



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