cakoose.util.exec
Class Exec.ByteArrayInputSource

java.lang.Object
  extended by cakoose.util.exec.Exec.InputGenerator
      extended by cakoose.util.exec.Exec.ByteArrayInputSource
Enclosing class:
Exec

public static class Exec.ByteArrayInputSource
extends Exec.InputGenerator


Field Summary
 byte[] data
           
 int length
           
 int pos
           
 
Constructor Summary
Exec.ByteArrayInputSource(byte[] data)
           
Exec.ByteArrayInputSource(byte[] data, int pos, int length)
           
 
Method Summary
 void generate(OutputStream dest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public final byte[] data

pos

public final int pos

length

public final int length
Constructor Detail

Exec.ByteArrayInputSource

public Exec.ByteArrayInputSource(byte[] data,
                                 int pos,
                                 int length)

Exec.ByteArrayInputSource

public Exec.ByteArrayInputSource(byte[] data)
Method Detail

generate

public void generate(OutputStream dest)
              throws IOException
Specified by:
generate in class Exec.InputGenerator
Throws:
IOException