SourceJammer 1.2.0.1 May 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan

org.sourcejammer.server.source
Class AddBytes

java.lang.Object
  |
  +--org.sourcejammer.server.source.AddBytes
All Implemented Interfaces:
java.io.Serializable, SourceBuildStepInf

public class AddBytes
extends java.lang.Object
implements java.io.Serializable, SourceBuildStepInf

This BuildStep class adds an array of bytes to the build.

See Also:
Serialized Form

Constructor Summary
AddBytes()
           
 
Method Summary
 java.io.OutputStream build(SourceInputStream parent, java.io.OutputStream buildSoFar)
          Executes this build step on OutputStream buildSoFar.
 byte[] getBytesToAdd()
           
 void setBytesToAdd(byte[] bytes)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddBytes

public AddBytes()
Method Detail

size

public int size()
Specified by:
size in interface SourceBuildStepInf

setBytesToAdd

public void setBytesToAdd(byte[] bytes)

getBytesToAdd

public byte[] getBytesToAdd()

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
Following copied from interface: org.sourcejammer.server.source.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.

SourceJammer 1.2.0.1 May 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan