com.sun.enterprise.module.common_impl
Class ByteArrayInhabitantsDescriptor

java.lang.Object
  extended by com.sun.enterprise.module.common_impl.ByteArrayInhabitantsDescriptor
All Implemented Interfaces:
InhabitantsDescriptor, Serializable

public class ByteArrayInhabitantsDescriptor
extends Object
implements InhabitantsDescriptor, Serializable

Implementation of InhabitantsDescriptor that loads the inhabitants meta-data from a byte array (usually coming from a inhabitant file).

Author:
Jerome Dochez
See Also:
Serialized Form

Field Summary
 String systemId
           
 
Constructor Summary
ByteArrayInhabitantsDescriptor(String systemId, byte[] data)
           
ByteArrayInhabitantsDescriptor(URL systemId, byte[] data)
           
 
Method Summary
 Iterable<InhabitantParser> createScanner()
          Creates an InhabitantsScanner instance capable of returning the metadata for all inhabitant.
 InputStream getInputStream()
           
 String getSystemId()
          Return the unique identifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

systemId

public final String systemId
Constructor Detail

ByteArrayInhabitantsDescriptor

public ByteArrayInhabitantsDescriptor(String systemId,
                                      byte[] data)

ByteArrayInhabitantsDescriptor

public ByteArrayInhabitantsDescriptor(URL systemId,
                                      byte[] data)
Method Detail

getSystemId

public String getSystemId()
Description copied from interface: InhabitantsDescriptor
Return the unique identifier

Specified by:
getSystemId in interface InhabitantsDescriptor
Returns:
unique id

createScanner

public Iterable<InhabitantParser> createScanner()
                                         throws IOException
Description copied from interface: InhabitantsDescriptor
Creates an InhabitantsScanner instance capable of returning the metadata for all inhabitant.

Specified by:
createScanner in interface InhabitantsDescriptor
Returns:
the scanner for inhabitant metadata
Throws:
IOException - if the scanner create fails initialization

getInputStream

public InputStream getInputStream()


Copyright © 2013 Oracle Corporation. All Rights Reserved.