|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dyuproject.ioc.AbstractResolver
public abstract class AbstractResolver
Base class for resolvers
Field Summary | |
---|---|
protected int |
_bufferSize
|
protected Charset |
_encoding
|
static int |
DEFAULT_BUFFER_SIZE
Default buffer size (4096 or the system property "resolver.default_buffer_size") |
static Charset |
DEFAULT_ENCODING
Default encoding (UTF-8) |
Constructor Summary | |
---|---|
AbstractResolver()
|
|
AbstractResolver(Charset encoding,
int bufferSize)
|
Method Summary | |
---|---|
static String |
generateTypeFromClass(Class<?> clazz)
Generates a type based from simple name of a class. |
int |
getBufferSize()
Gets the buffer size when reading from a stream. |
Charset |
getEncoding()
Gets the encoding as Charset . |
protected Reader |
newReader(InputStream in)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.dyuproject.ioc.Resource.Resolver |
---|
createResource, getType, resolve |
Field Detail |
---|
public static final Charset DEFAULT_ENCODING
public static final int DEFAULT_BUFFER_SIZE
protected final int _bufferSize
protected final Charset _encoding
Constructor Detail |
---|
public AbstractResolver()
public AbstractResolver(Charset encoding, int bufferSize)
Method Detail |
---|
public static String generateTypeFromClass(Class<?> clazz)
public final int getBufferSize()
public final Charset getEncoding()
Charset
.
protected Reader newReader(InputStream in) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |