public abstract class AbstractBlobResource extends Object implements BlobResource
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBlobResource.ClosingInputStream |
| Constructor and Description |
|---|
AbstractBlobResource(Object id,
org.springframework.jdbc.core.JdbcTemplate template,
org.springframework.transaction.PlatformTransactionManager txnMgr) |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
org.springframework.core.io.Resource |
createRelative(String relativePath) |
void |
delete() |
boolean |
exists() |
String |
getDescription() |
File |
getFile() |
String |
getFilename() |
Object |
getId() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
protected String |
getSelectBlobSQL(Object id) |
protected org.springframework.jdbc.core.JdbcTemplate |
getTemplate() |
protected org.springframework.transaction.PlatformTransactionManager |
getTransactionManager() |
URI |
getURI() |
URL |
getURL() |
boolean |
isOpen() |
boolean |
isReadable() |
boolean |
isWritable() |
long |
lastModified() |
protected void |
setId(Object id) |
public AbstractBlobResource(Object id, org.springframework.jdbc.core.JdbcTemplate template, org.springframework.transaction.PlatformTransactionManager txnMgr)
public Object getId()
getId in interface BlobResourceprotected void setId(Object id)
protected org.springframework.jdbc.core.JdbcTemplate getTemplate()
protected org.springframework.transaction.PlatformTransactionManager getTransactionManager()
public boolean isWritable()
isWritable in interface org.springframework.core.io.WritableResourcepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface org.springframework.core.io.WritableResourceIOExceptionpublic boolean exists()
exists in interface org.springframework.core.io.Resourcepublic boolean isReadable()
isReadable in interface org.springframework.core.io.Resourcepublic boolean isOpen()
isOpen in interface org.springframework.core.io.Resourcepublic URL getURL() throws IOException
getURL in interface org.springframework.core.io.ResourceIOExceptionpublic URI getURI() throws IOException
getURI in interface org.springframework.core.io.ResourceIOExceptionpublic File getFile() throws IOException
getFile in interface org.springframework.core.io.ResourceIOExceptionpublic long contentLength()
throws IOException
contentLength in interface org.springframework.core.io.ResourceIOExceptionpublic long lastModified()
throws IOException
lastModified in interface org.springframework.core.io.ResourceIOExceptionpublic org.springframework.core.io.Resource createRelative(String relativePath) throws IOException
createRelative in interface org.springframework.core.io.ResourceIOExceptionpublic String getFilename()
getFilename in interface org.springframework.core.io.Resourcepublic String getDescription()
getDescription in interface org.springframework.core.io.Resourcepublic InputStream getInputStream() throws IOException
getInputStream in interface org.springframework.core.io.InputStreamSourceIOExceptionpublic void delete()
throws IOException
delete in interface DeletableResourceIOExceptionCopyright © 2023 Paul Warren. All rights reserved.