@NotThreadSafe
public abstract class ResourceGenerator
extends java.io.OutputStream
| Modifier | Constructor and Description |
|---|---|
protected |
ResourceGenerator(Resource originalResource) |
protected |
ResourceGenerator(Resource originalResource,
java.lang.String name) |
protected |
ResourceGenerator(ResourceType type) |
protected |
ResourceGenerator(ResourceType type,
Resource originalResource,
java.lang.String name) |
protected |
ResourceGenerator(ResourceType type,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
drop() |
protected void |
finalize() |
void |
flush() |
protected abstract Resource |
generateResource() |
protected java.lang.String |
getName() |
protected Resource |
getOriginalResource() |
protected abstract java.io.OutputStream |
getOutputStream() |
Resource |
getTemporaryBufferedResource() |
protected ResourceType |
getType() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected ResourceGenerator(@Nonnull
Resource originalResource)
throws java.io.IOException
java.io.IOExceptionprotected ResourceGenerator(@Nonnull
Resource originalResource,
@Nullable
java.lang.String name)
throws java.io.IOException
java.io.IOExceptionprotected ResourceGenerator(@Nonnull
ResourceType type)
throws java.io.IOException
java.io.IOExceptionprotected ResourceGenerator(@Nonnull
ResourceType type,
@Nullable
java.lang.String name)
throws java.io.IOException
java.io.IOExceptionprotected ResourceGenerator(@Nonnull
ResourceType type,
@Nullable
Resource originalResource,
@Nullable
java.lang.String name)
throws java.io.IOException
java.io.IOException@Nonnull public Resource getTemporaryBufferedResource() throws java.io.IOException
java.io.IOExceptionprotected abstract Resource generateResource() throws java.io.IOException
java.io.IOExceptionprotected abstract java.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOException@Nullable protected Resource getOriginalResource()
@Nonnull protected ResourceType getType()
@Nullable protected java.lang.String getName()
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void drop()
throws java.io.IOException
java.io.IOExceptionCopyright © 2015 echocat. All Rights Reserved.