StreamProviderOptions

Inheritance: java.lang.Object

public class StreamProviderOptions

Represents the stream options.

Constructors

ConstructorDescription
StreamProviderOptions(int loadingType, String defaultPath)Initializes a new instance of the StreamProviderOptions class.
StreamProviderOptions()Initializes a new instance of the StreamProviderOptions class.

Methods

MethodDescription
equals(Object arg0)
getClass()
getCustomPath()The user custom path(URL) saved in generated html file for the referred source.
getDefaultPath()The default path(URL) saved in generated html file for the referred source.
getInputStream()Gets the input stream to get data.
getResourceLoadingType()Gets the type of loading resource.
getStream()Gets the output stream to write saved data.
hashCode()
notify()
notifyAll()
setCustomPath(String value)The user custom path(URL) saved in generated html file for the referred source.
setInputStream(InputStream value)Sets the input stream to get data.
setResourceLoadingType(int value)Sets the type of loading resource.
setStream(OutputStream value)Sets the output stream to write saved data.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

StreamProviderOptions(int loadingType, String defaultPath)

public StreamProviderOptions(int loadingType, String defaultPath)

Initializes a new instance of the StreamProviderOptions class.

Parameters:

ParameterTypeDescription
loadingTypeintResourceLoadingType. The type to load the linked resource.
defaultPathjava.lang.StringThe default path.

StreamProviderOptions()

public StreamProviderOptions()

Initializes a new instance of the StreamProviderOptions class.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCustomPath()

public String getCustomPath()

The user custom path(URL) saved in generated html file for the referred source. If not defined by user, DefaultPath will be used. For example, the sheet data will be saved by user to d:/sheet001.htm, the url used in the main html file should be “d:/sheet001.htm” or other valid relative path that can be accessed by the main html file.

Returns: java.lang.String

getDefaultPath()

public String getDefaultPath()

The default path(URL) saved in generated html file for the referred source. For example, the sheet data saved in xxx_files/sheet001.htm, the url used in the main html file should be like “src=“xxx_files/sheet001.htm””

Returns: java.lang.String

getInputStream()

public InputStream getInputStream()

Gets the input stream to get data.

Returns: java.io.InputStream

getResourceLoadingType()

public int getResourceLoadingType()

Gets the type of loading resource.

See ResourceLoadingType.

Returns: int

getStream()

public OutputStream getStream()

Gets the output stream to write saved data.

Returns: java.io.OutputStream

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setCustomPath(String value)

public void setCustomPath(String value)

The user custom path(URL) saved in generated html file for the referred source. If not defined by user, DefaultPath will be used. For example, the sheet data will be saved by user to d:/sheet001.htm, the url used in the main html file should be “d:/sheet001.htm” or other valid relative path that can be accessed by the main html file.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setInputStream(InputStream value)

public void setInputStream(InputStream value)

Sets the input stream to get data.

Parameters:

ParameterTypeDescription
valuejava.io.InputStream

setResourceLoadingType(int value)

public void setResourceLoadingType(int value)

Sets the type of loading resource.

See ResourceLoadingType.

Parameters:

ParameterTypeDescription
valueint

setStream(OutputStream value)

public void setStream(OutputStream value)

Sets the output stream to write saved data.

Parameters:

ParameterTypeDescription
valuejava.io.OutputStream

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int