org.sourcejammer.server.source
Class SkipBytes

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

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

A BuildStep class that skips a specified number of bytes in a SourceInputStream.

See Also:
Serialized Form

Field Summary
private  int miNumBytesToSkip
           
private  int miSize
           
 
Constructor Summary
SkipBytes()
           
 
Method Summary
 java.io.OutputStream build(SourceInputStream parent, java.io.OutputStream buildSoFar)
          Executes this build step on OutputStream buildSoFar.
 int getNumBytesToSkip()
           
 void setNumBytesToSkip(int i)
           
 int size()
          Always returns 0.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

miNumBytesToSkip

private int miNumBytesToSkip

miSize

private int miSize
Constructor Detail

SkipBytes

public SkipBytes()
Method Detail

size

public int size()
Always returns 0.

Specified by:
size in interface SourceBuildStepInf

setNumBytesToSkip

public void setNumBytesToSkip(int i)

getNumBytesToSkip

public int getNumBytesToSkip()

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.