edu.umd.cs.jazz.io
Class ZStreamPreprocessor
java.lang.Object
|
+--edu.umd.cs.jazz.io.ZStreamPreprocessor
- All Implemented Interfaces:
- java.io.Serializable
- public class ZStreamPreprocessor
- extends java.lang.Object
- implements java.io.Serializable
ZStreamPreprocessor preprocesses the java io stream to manage embedded binary data.
Warning: Serialized and ZSerialized objects of this class will not be
compatible with future Jazz releases. The current serialization support is
appropriate for short term storage or RMI between applications running the
same version of Jazz. A future release of Jazz will provide support for long
term persistence.
- Author:
- Ben Bederson, Britt McAlister
- See Also:
- Serialized Form
Method Summary |
byte[] |
getBytes(int offset,
int length)
|
protected void |
handleBinaryData(java.io.OutputStream captureBuf,
int bytesInBuffer,
int markerPosInBuffer)
|
protected boolean |
isEOL(byte b)
|
protected boolean |
isWhiteSpace(byte b)
|
static void |
main(java.lang.String[] args)
|
java.io.InputStream |
preprocessStream()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
protected ZExtendedInputStream data
out
protected java.lang.StringBuffer out
bufSize
protected int bufSize
binaryMarker
protected java.lang.String binaryMarker
bmLength
protected int bmLength
bmBytes
protected byte[] bmBytes
buffer
protected byte[] buffer
ZStreamPreprocessor
public ZStreamPreprocessor(ZExtendedInputStream data)
isWhiteSpace
protected boolean isWhiteSpace(byte b)
isEOL
protected boolean isEOL(byte b)
handleBinaryData
protected void handleBinaryData(java.io.OutputStream captureBuf,
int bytesInBuffer,
int markerPosInBuffer)
throws java.io.IOException
getBytes
public byte[] getBytes(int offset,
int length)
preprocessStream
public java.io.InputStream preprocessStream()
main
public static final void main(java.lang.String[] args)
Copyright © 2001 by University of Maryland, College Park, MD 20742, USA All rights reserved.