Package overit.geocall.util
Class ByteCache
java.lang.Object
overit.geocall.util.ByteCache
- All Implemented Interfaces:
Serializable,ReferenceOwner
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclass -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteCache.ByteCacheOutputStreamprotected OutputStreamprotected FileSupport temporary file, if the cache dimension is bigger than the maxContentInMeomoryprotected intprotected intprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidfinalize()voidfree()final InputStreamfinal OutputStreamlonglength()voidwriteTo(OutputStream os)
-
Field Details
-
_bcos
-
_concreteOs
-
_f
Support temporary file, if the cache dimension is bigger than the maxContentInMeomory -
_length
protected int _length -
_prefix
-
_maxContentInMemory
protected int _maxContentInMemory
-
-
Constructor Details
-
ByteCache
public ByteCache() -
ByteCache
-
ByteCache
- Throws:
IOException
-
ByteCache
- Throws:
IOException
-
-
Method Details
-
dumpOnFile
- Throws:
IOException
-
writeTo
- Throws:
IOException
-
getInputStream
- Throws:
IOException
-
getOutputStream
-
length
public long length() -
free
- Throws:
IOException
-
finalize
-