public class ByteArrayResource extends AbstractResource
Title: ByteArrayResource.java
Description:
bboss workgroup
Copyright (c) 2008
savesize| 构造器和说明 |
|---|
ByteArrayResource(byte[] byteArray)
Create a new ByteArrayResource.
|
ByteArrayResource(byte[] byteArray,
java.lang.String description)
Create a new ByteArrayResource.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(java.lang.Object obj)
This implementation compares the underlying byte array.
|
boolean |
exists()
This implementation always returns
true. |
byte[] |
getByteArray()
Return the underlying byte array.
|
java.lang.String |
getDescription()
This implementation returns the passed-in description, if any.
|
java.lang.String |
getFilename()
This implementation returns the name of the file.
|
java.io.InputStream |
getInputStream()
This implementation returns a ByteArrayInputStream for the
underlying byte array.
|
int |
hashCode()
This implementation returns the hash code based on the
underlying byte array.
|
contentLength, createRelative, getFile, getFileForLastModifiedCheck, getSavesize, getURI, getURL, isOpen, isReadable, lastModified, release, savetofile, savetofile, toStringpublic ByteArrayResource(byte[] byteArray)
byteArray - the byte array to wrappublic ByteArrayResource(byte[] byteArray,
java.lang.String description)
byteArray - the byte array to wrapdescription - where the byte array comes frompublic final byte[] getByteArray()
public boolean exists()
true.exists 在接口中 org.frameworkset.util.io.Resourceexists 在类中 AbstractResourcepublic java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionByteArrayInputStreampublic java.lang.String getDescription()
public java.lang.String getFilename()
getFilename 在接口中 org.frameworkset.util.io.ResourcegetFilename 在类中 AbstractResourceFile.getName()public boolean equals(java.lang.Object obj)
equals 在类中 AbstractResourceArrays.equals(byte[], byte[])public int hashCode()
hashCode 在类中 AbstractResourceResource.getDescription()