org.sourcejammer.server.source
Class ReadBytes
java.lang.Object
|
+--org.sourcejammer.server.source.ReadBytes
- All Implemented Interfaces:
- java.io.Serializable, SourceBuildStepInf
- public class ReadBytes
- extends java.lang.Object
- implements java.io.Serializable, SourceBuildStepInf
A BuildStep class that reads a specified number of bytes from a SourceInputStream.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
miNumBytesToRead
private int miNumBytesToRead
ReadBytes
public ReadBytes()
size
public int size()
- Specified by:
size
in interface SourceBuildStepInf
setNumBytesToRead
public void setNumBytesToRead(int i)
getNumBytesToRead
public int getNumBytesToRead()
build
public java.io.OutputStream build(SourceInputStream parent,
java.io.OutputStream buildSoFar)
throws InvalidSourceException,
java.io.IOException
- Description copied from interface:
SourceBuildStepInf
- Executes this build step on OutputStream buildSoFar.
- Specified by:
build
in interface SourceBuildStepInf
- Parameters:
parent
- -- SourceInputStream object of parent, or old version of this
source file.buildSoFar
- -- The new file being built. This object is modified
by either adding, skipping, or reading bytes
from parent.
InvalidSourceException
java.io.IOException
Copyright © 2003 Soucejammer project.