-
Notifications
You must be signed in to change notification settings - Fork 36
InlineReader
memory-agape edited this page Apr 17, 2019
·
1 revision
InlineReader class is provided APIs for reading pre-compiled Java class in inline.
For an example as follows:
$javaClass = new JavaClass(
new InlineReader('File.class', pack('N', 0xCAFEBABE))
);
or
$javaClass = new JavaClass(
new InlineReader('/path/to/TheFile.class', file_get_contents('/path/to/away/TheFile.class'))
);public function __construct(string $fileName, string $code)Initiate a Java Class Reader.
| Name | Type | Description |
|---|---|---|
| $fileName | string | Specify virtual file name for Java class. |
| $code | string | Specify raw Java class binary. |
public function getBinaryReader(): BinaryReaderReturn an initiated BinaryReader instance.
No parameters.
public function getJavaPathName(): stringGet a real Java class file name.
No parameters.
public function getFileName(): stringGet a real Java class file path.
No parameters.
public function __toString(): stringGet a real Java class file path.
No parameters.
- The Contribution Guide
- CHANGELOG
- How to run JavaClass
- How to run JavaArchive
- How to run Kotlin
-
Provided classes
- Core
- Types
- Utilities
- Provided options
- Operation Injector