Class BytestreamCache
-
- org.apache.tapestry5.internal.services.assets.BytestreamCache
-
public class BytestreamCache extends
A wrapper around a byte-stream, represented internally as a byte array. Part of the fix to TAP5-1116, avoiding a live lock due to ByteArrayOutputStream.writeTo() being a synchronized method.- Since:
- 5.2.0
-
-
Constructor Summary
Constructors Constructor Description BytestreamCache(byte[] streamData)
os)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description openStream()
int
size()
void
os)
-
-
-
Constructor Detail
-
BytestreamCache
public BytestreamCache(byte[] streamData)
-
BytestreamCache
public os)
-
-
Method Detail
-
writeTo
public void os) throws
- Throws:
-
size
public int size()
-
openStream
public openStream()
-
-