com.bigdata.bfs
Interface Document

All Superinterfaces:
DocumentHeader
All Known Implementing Classes:
DocumentImpl, RepositoryDocumentImpl

public interface Document
extends DocumentHeader

Document model interface for operations on the IContentRepository.

Version:
$Id: Document.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
mike@systap.com

Method Summary
 InputStream getInputStream()
          An input stream on the byte[] stored in the IContentRepository.
 Reader getReader()
          A reader on the byte[] stored in the IContentRepository where bytes are decoded to characters using the encoding identified by DocumentHeader.getContentEncoding().
 
Methods inherited from interface com.bigdata.bfs.DocumentHeader
asMap, exists, getContentEncoding, getContentType, getEarliestVersionCreateTime, getId, getMetadataUpdateTime, getProperty, getVersion, getVersionCreateTime
 

Method Detail

getInputStream

InputStream getInputStream()
An input stream on the byte[] stored in the IContentRepository.


getReader

Reader getReader()
                 throws UnsupportedEncodingException
A reader on the byte[] stored in the IContentRepository where bytes are decoded to characters using the encoding identified by DocumentHeader.getContentEncoding().

Throws:
IllegalStateException - if the DocumentHeader.getContentEncoding() is not set.
UnsupportedEncodingException


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.