com.xml_project.morganaxproc.filesystem
Class XProcFilesystem.LoadResult

java.lang.Object
  extended by com.xml_project.morganaxproc.filesystem.XProcFilesystem.LoadResult
Enclosing class:
XProcFilesystem

public static final class XProcFilesystem.LoadResult
extends java.lang.Object

A class wrapping the results from loading a resource from an uri.


Constructor Summary
XProcFilesystem.LoadResult(java.lang.String encMethod, byte[] encData, java.lang.String mimeType, java.lang.String uri)
          Constructs a new LoadResult
 
Method Summary
 java.lang.String getEncodedData()
           
 java.lang.String getEncodingMethod()
          Returns the encoding associated with the loaded uri.
 java.lang.String getMime()
          Returns the mime type associated with the loaded uri.
 byte[] getRawData()
           
 java.lang.String getURI()
          Returns the uri from which the LoadResult was loaded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XProcFilesystem.LoadResult

public XProcFilesystem.LoadResult(java.lang.String encMethod,
                                  byte[] encData,
                                  java.lang.String mimeType,
                                  java.lang.String uri)
Constructs a new LoadResult

Parameters:
encMethod -
encData -
mimeType -
uri -
Method Detail

getEncodingMethod

public java.lang.String getEncodingMethod()
Returns the encoding associated with the loaded uri.

Returns:
the encoding.

getRawData

public byte[] getRawData()
Returns:
the data associated with the loaded uri. Raw bytes!

getEncodedData

public java.lang.String getEncodedData()
                                throws java.io.IOException
Returns:
Returns the data associated with the loaded uri. (base64 or string)
Throws:
java.io.IOException - if base64 encoding is not possible or charset encoding is not supported.

getMime

public java.lang.String getMime()
Returns the mime type associated with the loaded uri.

Returns:
the mime type.

getURI

public java.lang.String getURI()
Returns the uri from which the LoadResult was loaded.

Returns:
the uri.