| 
Oracle® On Track Communication SDK Documentation Release 1(1.0) E20955-01  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  
java.io.InputStream
      
waggle.core.api.XAPIInputStream
public final class XAPIInputStream
This is how you send larger pieces of content. Used as value of API parameters that require an InputStream.
| Constructor Summary | |
|---|---|
XAPIInputStream(byte[] bytes)Used as an argument to any function requiring an InputStream argument.  | 
|
XAPIInputStream(File file)Used as an argument to any function requiring an InputStream argument.  | 
|
XAPIInputStream(InputStream inputStream, long length)Used as a return value.  | 
|
XAPIInputStream(String string)Used as an argument to any function requiring an InputStream argument.  | 
|
| Method Summary | |
|---|---|
 int | 
available() | 
 void | 
close() | 
 InputStream | 
createInputStream() | 
 String | 
getFileName() | 
 long | 
getLength() | 
 void | 
mark(int readLimit) | 
 boolean | 
markSupported() | 
 int | 
read() | 
 int | 
read(byte[] b) | 
 int | 
read(byte[] b, int off, int len) | 
 void | 
reset() | 
 long | 
skip(long n) | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public XAPIInputStream(String string)
string - The String.public XAPIInputStream(byte[] bytes)
bytes - The bytes.public XAPIInputStream(File file)
file - The file.
public XAPIInputStream(InputStream inputStream,
                       long length)
inputStream - The InputStream.length - The length in bytes of the InputStream.| Method Detail | 
|---|
public long getLength()
getLength in interface org.apache.commons.httpclient.methods.multipart.PartSourcepublic String getFileName()
getFileName in interface org.apache.commons.httpclient.methods.multipart.PartSource
public InputStream createInputStream()
                              throws IOException
createInputStream in interface org.apache.commons.httpclient.methods.multipart.PartSourceIOException
public int read()
         throws IOException
read in class InputStreamIOException
public int read(byte[] b)
         throws IOException
read in class InputStreamIOException
public int read(byte[] b,
                int off,
                int len)
         throws IOException
read in class InputStreamIOException
public long skip(long n)
          throws IOException
skip in class InputStreamIOException
public int available()
              throws IOException
available in class InputStreamIOException
public void close()
           throws IOException
close in interface Closeableclose in class InputStreamIOExceptionpublic void mark(int readLimit)
mark in class InputStream
public void reset()
           throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStream
  | 
Oracle® On Track Communication SDK Documentation Release 1(1.0) E20955-01  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||