public final class EmbeddedFileBasedRobotLibrary extends java.lang.Object implements FileBasedRobotLibrary
ExecuteRequest
that is sent to the robot server.| Constructor and Description |
|---|
EmbeddedFileBasedRobotLibrary(Binary libraryBytes)
Creates a new robot library that will be embedded in the message sent to RoboServer.
|
EmbeddedFileBasedRobotLibrary(byte[] libraryBytes)
Creates a new robot library that will be embedded in the message sent to RoboServer.
|
EmbeddedFileBasedRobotLibrary(java.io.InputStream in)
Creates a new robot library that will be embedded in the message sent to RoboServer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns
true if this object and the specified object have the same property values, and
false otherwise. |
byte[] |
getBytes()
Deprecated.
This method has been renamed
toByteArray(). The name
getBytes implied a low- or no-cost operation. In fact
the operation entailed copying the internal byte array. |
java.io.InputStream |
getInputStream()
Returns a byte input stream that can be used to read the raw, packed robot library.
|
int |
getSize()
Returns the number of bytes in the embedded packed library.
|
int |
hashCode()
Returns the hash code of this object based on property values.
|
java.lang.String |
toBase64String()
Returns a Base64 encoded representation of the bytes in the embedded library.
|
byte[] |
toByteArray()
Returns the embedded robot library, as an array of bytes.
|
java.lang.String |
toString()
Returns a human readable string representation of this object.
|
public EmbeddedFileBasedRobotLibrary(java.io.InputStream in)
throws java.io.IOException
When the constructor is called, the library is read from the underlying stream. Because this can be costly, it is recommended that the same instance of this class is reused. This is safe, because the class is immutable and can be shared among many different threads.
The caller is responsible for closing the input stream.
in - the InputStream to read the library file from.java.io.IOException - if the input stream could not be read for some reason.public EmbeddedFileBasedRobotLibrary(byte[] libraryBytes)
libraryBytes - the bytes to embed in the request.java.lang.NullPointerException - if the robotLibraryBytes parameter is
null.public EmbeddedFileBasedRobotLibrary(Binary libraryBytes)
Binary object
in the request.libraryBytes - the bytes to embed in the request.java.lang.NullPointerException - if the robotLibraryBytes parameter is
null.public java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOException - if an I/O error prevents us from reading the library bytes.public byte[] getBytes()
toByteArray(). The name
getBytes implied a low- or no-cost operation. In fact
the operation entailed copying the internal byte array.public byte[] toByteArray()
public java.lang.String toBase64String()
public int getSize()
public boolean equals(java.lang.Object obj)
true if this object and the specified object have the same property values, and
false otherwise.equals in class java.lang.Objectobj - the object to test for equality.true if this object and the specified object have the same property values, and
false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectRoboSuite Java API, v11.4.7880