net.northfuse.resources
Class AggregatedResource

java.lang.Object
  extended by org.springframework.core.io.AbstractResource
      extended by org.springframework.core.io.ByteArrayResource
          extended by net.northfuse.resources.AggregatedResource
All Implemented Interfaces:
org.springframework.core.io.InputStreamSource, org.springframework.core.io.Resource

public final class AggregatedResource
extends org.springframework.core.io.ByteArrayResource

An implementation of Resource.

Author:
tylers2

Constructor Summary
AggregatedResource(byte[] byteArray)
          Creates an Aggregated resource.
 
Method Summary
 long contentLength()
          
 long lastModified()
          
 
Methods inherited from class org.springframework.core.io.ByteArrayResource
equals, exists, getByteArray, getDescription, getInputStream, hashCode
 
Methods inherited from class org.springframework.core.io.AbstractResource
createRelative, getFile, getFileForLastModifiedCheck, getFilename, getURI, getURL, isOpen, isReadable, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AggregatedResource

public AggregatedResource(byte[] byteArray)
Creates an Aggregated resource.

Parameters:
byteArray - a byte array
Method Detail

lastModified

public long lastModified()
                  throws java.io.IOException

Specified by:
lastModified in interface org.springframework.core.io.Resource
Overrides:
lastModified in class org.springframework.core.io.AbstractResource
Throws:
java.io.IOException

contentLength

public long contentLength()
                   throws java.io.IOException

Specified by:
contentLength in interface org.springframework.core.io.Resource
Overrides:
contentLength in class org.springframework.core.io.AbstractResource
Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.