org.apache.naming.resources
クラス Resource

java.lang.Object
  |
  +--org.apache.naming.resources.Resource
直系の既知のサブクラス:
FileDirContext.FileResource, WARDirContext.WARResource

public class Resource
extends java.lang.Object

Encapsultes the contents of a resource.

バージョン:
$Revision: 1.1.2.1 $
作成者:
Remy Maucherat

フィールドの概要
protected  byte[] binaryContent
          Binary content.
protected  java.io.InputStream inputStream
          Input stream.
 
コンストラクタの概要
Resource()
           
Resource(byte[] binaryContent)
           
Resource(java.io.InputStream inputStream)
           
 
メソッドの概要
 byte[] getContent()
          Content accessor.
 void setContent(byte[] binaryContent)
          Content mutator.
 void setContent(java.io.InputStream inputStream)
          Content mutator.
 java.io.InputStream streamContent()
          Content accessor.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

binaryContent

protected byte[] binaryContent
Binary content.

inputStream

protected java.io.InputStream inputStream
Input stream.
コンストラクタの詳細

Resource

public Resource()

Resource

public Resource(java.io.InputStream inputStream)

Resource

public Resource(byte[] binaryContent)
メソッドの詳細

streamContent

public java.io.InputStream streamContent()
                                  throws java.io.IOException
Content accessor.
戻り値:
InputStream

getContent

public byte[] getContent()
Content accessor.
戻り値:
binary content

setContent

public void setContent(java.io.InputStream inputStream)
Content mutator.
パラメータ:
inputStream - New input stream

setContent

public void setContent(byte[] binaryContent)
Content mutator.
パラメータ:
binaryContent - New bin content


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.