public abstract class

LazyInputStream

extends InputStream
java.lang.Object
   ↳ java.io.InputStream
     ↳ org.mule.modules.salesforce.lazystream.LazyInputStream
Known Direct Subclasses

Class Overview

This class encapsulates an InputStream and the

Summary

[Expand]
Inherited Constants
From class java.io.InputStream
Fields
private BulkConnection connection
private InputStream inputStream
private LazyInputStreamStates inputStreamState
private Object inputStreamStateLock
Public Constructors
LazyInputStream(BulkConnection connection)
Public Methods
int available()
void close()
LazyInputStreamStates getInputStreamState()
synchronized void mark(int readlimit)
boolean markSupported()
int read(byte[] b)
int read()
int read(byte[] b, int off, int len)
synchronized void reset()
long skip(long n)
Protected Methods
BulkConnection getBulkConnection()
abstract InputStream openLazyInputStream()
This operation is the one that must be override in order to being able to open the InputStream.
[Expand]
Inherited Methods
From class java.io.InputStream
From class java.lang.Object
From interface java.io.Closeable

Fields

private BulkConnection connection

private InputStream inputStream

private LazyInputStreamStates inputStreamState

private Object inputStreamStateLock

Public Constructors

public LazyInputStream (BulkConnection connection)

Parameters
connection

Public Methods

public int available ()

Throws
IOException

public void close ()

Throws
IOException

public LazyInputStreamStates getInputStreamState ()

public synchronized void mark (int readlimit)

Parameters
readlimit

public boolean markSupported ()

public int read (byte[] b)

Parameters
b
Throws
IOException

public int read ()

Throws
IOException

public int read (byte[] b, int off, int len)

Parameters
b
off
len
Throws
IOException

public synchronized void reset ()

Throws
IOException

public long skip (long n)

Parameters
n
Throws
IOException

Protected Methods

protected BulkConnection getBulkConnection ()

protected abstract InputStream openLazyInputStream ()

This operation is the one that must be override in order to being able to open the InputStream. This operation will be called on demand, when some of the operations of the InputStream are maded

Returns
  • Returns the lazy InputStream.
Throws
IOException