intarsys runtime library

de.intarsys.tools.result
Class ByteBasedResult

java.lang.Object
  extended by de.intarsys.tools.result.CommonResult
      extended by de.intarsys.tools.result.StreamResult
          extended by de.intarsys.tools.result.ByteBasedResult
All Implemented Interfaces:
ILocatorSupport, IMimeTypeSupport, IResult, IStreamResult

public class ByteBasedResult
extends StreamResult


Constructor Summary
ByteBasedResult(String contentType, byte[] bytes)
           
 
Method Summary
 byte[] getBytes()
           
 ILocator getLocator()
          Return the ILocator that defines the physical resource location for the reciver.
 String toString()
           
 
Methods inherited from class de.intarsys.tools.result.StreamResult
getName, getType, setName, setType
 
Methods inherited from class de.intarsys.tools.result.CommonResult
getContentType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.intarsys.tools.mime.IMimeTypeSupport
getContentType
 

Constructor Detail

ByteBasedResult

public ByteBasedResult(String contentType,
                       byte[] bytes)
Method Detail

getBytes

public byte[] getBytes()

getLocator

public ILocator getLocator()
Description copied from interface: ILocatorSupport
Return the ILocator that defines the physical resource location for the reciver.

Returns:
Return the ILocator that defines the physical resource location for the reciver.

toString

public String toString()
Overrides:
toString in class Object

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.