Skip to content

Commit d69d9aa

Browse files
committed
Merge branch 'master' into add-intern-pool
2 parents cea2fa7 + 5c5d63e commit d69d9aa

303 files changed

Lines changed: 45213 additions & 12 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "JVM emulator by PHP",
44
"type": "library",
55
"license": "MIT",
6-
"version": "0.0.6.6-dev",
6+
"version": "0.0.7.0-dev",
77
"authors": [
88
{
99
"name": "memory"
@@ -16,14 +16,9 @@
1616
"php": ">=7.2",
1717
"ext-zip": "*",
1818
"monolog/monolog": "^1.24",
19-
"php-java/java-lang-package": "*",
20-
"php-java/java-util-package": "*",
21-
"php-java/java-io-package": "*",
22-
"php-java/java-net-package": "*",
23-
"php-java/java-nio-package": "*",
24-
"gabrielelana/byte-units": "dev-master",
25-
"symfony/console": "4.2",
26-
"phpdocumentor/reflection-docblock": "4.3"
19+
"gabrielelana/byte-units": "^0.5.0",
20+
"symfony/console": "^4.2",
21+
"phpdocumentor/reflection-docblock": "^4.3"
2722
},
2823
"autoload": {
2924
"psr-4": {
@@ -43,6 +38,5 @@
4338
},
4439
"scripts": {
4540
"tests": "phpunit tests --stop-on-failure && phpcs --standard=phpcs.xml src"
46-
},
47-
"minimum-stability": "dev"
41+
}
4842
}

phpcs.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<exclude-pattern>./src/Kernel/Mnemonics</exclude-pattern>
1313
<exclude-pattern>./src/Kernel/Structures</exclude-pattern>
1414
<exclude-pattern>./src/Packages/PHPJava/Extended/_Object.php</exclude-pattern>
15+
<exclude-pattern>./src/Packages/java/*</exclude-pattern>
1516
</rule>
1617

1718
<rule ref="Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase">
@@ -21,6 +22,7 @@
2122

2223
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
2324
<exclude-pattern>./src/Packages/PHPJava/Extended/_Object.php</exclude-pattern>
25+
<exclude-pattern>./src/Packages/java/*</exclude-pattern>
2426
</rule>
2527

2628
<arg name="colors"/>

src/Core/PHPJava.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ final class PHPJava
1212
/**
1313
* As same as composer version.
1414
*/
15-
const VERSION = 0x000066;
15+
const VERSION = 0x000070;
1616
}
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
<?php
2+
namespace PHPJava\Packages\java\io;
3+
4+
use PHPJava\Exceptions\NotImplementedException;
5+
use PHPJava\Packages\java\io\FilterInputStream;
6+
7+
// use PHPJava\Packages\java\io\Closeable;
8+
// use PHPJava\Packages\java\lang\AutoCloseable;
9+
10+
/**
11+
* The `BufferedInputStream` class was auto generated.
12+
*
13+
* @parent \PHPJava\Packages\java\lang\_Object
14+
* @parent \PHPJava\Packages\java\io\InputStream
15+
* @parent \PHPJava\Packages\java\io\FilterInputStream
16+
*/
17+
class BufferedInputStream extends FilterInputStream /* implements Closeable, AutoCloseable */
18+
{
19+
/**
20+
* The internal buffer array where the data is stored.
21+
*
22+
* @var mixed $buf
23+
*/
24+
protected $buf = null;
25+
26+
/**
27+
* The index one greater than the index of the last valid byte in the buffer.
28+
*
29+
* @var mixed $count
30+
*/
31+
protected $count = null;
32+
33+
/**
34+
* The maximum read ahead allowed after a call to the mark method before subsequent calls to the reset method fail.
35+
*
36+
* @var mixed $marklimit
37+
*/
38+
protected $marklimit = null;
39+
40+
/**
41+
* The value of the pos field at the time the last mark method was called.
42+
*
43+
* @var mixed $markpos
44+
*/
45+
protected $markpos = null;
46+
47+
/**
48+
* The current position in the buffer.
49+
*
50+
* @var mixed $pos
51+
*/
52+
protected $pos = null;
53+
54+
55+
/**
56+
* Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream.
57+
*
58+
* @param mixed $a
59+
* @return mixed
60+
* @throws NotImplementedException
61+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#available
62+
*/
63+
public function available($a = null)
64+
{
65+
throw new NotImplementedException(__METHOD__);
66+
}
67+
68+
/**
69+
* Closes this input stream and releases any system resources associated with the stream.
70+
*
71+
* @param mixed $a
72+
* @return mixed
73+
* @throws NotImplementedException
74+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#close
75+
*/
76+
public function close($a = null)
77+
{
78+
throw new NotImplementedException(__METHOD__);
79+
}
80+
81+
/**
82+
* See the general contract of the mark method of InputStream.
83+
*
84+
* @param mixed $a
85+
* @return mixed
86+
* @throws NotImplementedException
87+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#mark
88+
*/
89+
public function mark($a = null)
90+
{
91+
throw new NotImplementedException(__METHOD__);
92+
}
93+
94+
/**
95+
* Tests if this input stream supports the mark and reset methods.
96+
*
97+
* @param mixed $a
98+
* @return mixed
99+
* @throws NotImplementedException
100+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#markSupported
101+
*/
102+
public function markSupported($a = null)
103+
{
104+
throw new NotImplementedException(__METHOD__);
105+
}
106+
107+
/**
108+
* See the general contract of the read method of InputStream.
109+
* Reads bytes from this byte-input stream into the specified byte array, starting at the given offset.
110+
*
111+
* @param mixed $a
112+
* @param mixed $b
113+
* @param mixed $c
114+
* @return mixed
115+
* @throws NotImplementedException
116+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#read
117+
*/
118+
public function read($a = null, $b = null, $c = null)
119+
{
120+
throw new NotImplementedException(__METHOD__);
121+
}
122+
123+
/**
124+
* See the general contract of the reset method of InputStream.
125+
*
126+
* @param mixed $a
127+
* @return mixed
128+
* @throws NotImplementedException
129+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#reset
130+
*/
131+
public function reset($a = null)
132+
{
133+
throw new NotImplementedException(__METHOD__);
134+
}
135+
136+
/**
137+
* See the general contract of the skip method of InputStream.
138+
*
139+
* @param mixed $a
140+
* @return mixed
141+
* @throws NotImplementedException
142+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#skip
143+
*/
144+
public function skip($a = null)
145+
{
146+
throw new NotImplementedException(__METHOD__);
147+
}
148+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
namespace PHPJava\Packages\java\io;
3+
4+
use PHPJava\Exceptions\NotImplementedException;
5+
use PHPJava\Packages\java\io\FilterOutputStream;
6+
7+
// use PHPJava\Packages\java\io\Flushable;
8+
// use PHPJava\Packages\java\lang\AutoCloseable;
9+
10+
/**
11+
* The `BufferedOutputStream` class was auto generated.
12+
*
13+
* @parent \PHPJava\Packages\java\lang\_Object
14+
* @parent \PHPJava\Packages\java\io\OutputStream
15+
* @parent \PHPJava\Packages\java\io\FilterOutputStream
16+
*/
17+
class BufferedOutputStream extends FilterOutputStream /* implements Flushable, AutoCloseable */
18+
{
19+
/**
20+
* The internal buffer where data is stored.
21+
*
22+
* @var mixed $buf
23+
*/
24+
protected $buf = null;
25+
26+
/**
27+
* The number of valid bytes in the buffer.
28+
*
29+
* @var mixed $count
30+
*/
31+
protected $count = null;
32+
33+
34+
/**
35+
* Flushes this buffered output stream.
36+
*
37+
* @param mixed $a
38+
* @return mixed
39+
* @throws NotImplementedException
40+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#flush
41+
*/
42+
public function flush($a = null)
43+
{
44+
throw new NotImplementedException(__METHOD__);
45+
}
46+
47+
/**
48+
* Writes len bytes from the specified byte array starting at offset off to this buffered output stream.
49+
* Writes the specified byte to this buffered output stream.
50+
*
51+
* @param mixed $a
52+
* @param mixed $b
53+
* @param mixed $c
54+
* @return mixed
55+
* @throws NotImplementedException
56+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#write
57+
*/
58+
public function write($a = null, $b = null, $c = null)
59+
{
60+
throw new NotImplementedException(__METHOD__);
61+
}
62+
}
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
<?php
2+
namespace PHPJava\Packages\java\io;
3+
4+
use PHPJava\Exceptions\NotImplementedException;
5+
use PHPJava\Packages\java\io\Reader;
6+
7+
// use PHPJava\Packages\java\io\Closeable;
8+
// use PHPJava\Packages\java\lang\Readable;
9+
// use PHPJava\Packages\java\util\stream\Stream;
10+
11+
/**
12+
* The `BufferedReader` class was auto generated.
13+
*
14+
* @parent \PHPJava\Packages\java\lang\_Object
15+
* @parent \PHPJava\Packages\java\io\Reader
16+
*/
17+
class BufferedReader extends Reader /* implements Closeable, Readable, Stream */
18+
{
19+
20+
/**
21+
* Returns a Stream, the elements of which are lines read from this BufferedReader.
22+
*
23+
* @param mixed $a
24+
* @return mixed
25+
* @throws NotImplementedException
26+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#lines
27+
*/
28+
public function lines($a = null)
29+
{
30+
throw new NotImplementedException(__METHOD__);
31+
}
32+
33+
/**
34+
* Marks the present position in the stream.
35+
*
36+
* @param mixed $a
37+
* @return mixed
38+
* @throws NotImplementedException
39+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#mark
40+
*/
41+
public function mark($a = null)
42+
{
43+
throw new NotImplementedException(__METHOD__);
44+
}
45+
46+
/**
47+
* Tells whether this stream supports the mark() operation, which it does.
48+
*
49+
* @param mixed $a
50+
* @return mixed
51+
* @throws NotImplementedException
52+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#markSupported
53+
*/
54+
public function markSupported($a = null)
55+
{
56+
throw new NotImplementedException(__METHOD__);
57+
}
58+
59+
/**
60+
* Reads a single character.
61+
* Reads characters into a portion of an array.
62+
*
63+
* @param mixed $a
64+
* @param mixed $b
65+
* @param mixed $c
66+
* @return mixed
67+
* @throws NotImplementedException
68+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#read
69+
*/
70+
public function read($a = null, $b = null, $c = null)
71+
{
72+
throw new NotImplementedException(__METHOD__);
73+
}
74+
75+
/**
76+
* Reads a line of text.
77+
*
78+
* @param mixed $a
79+
* @return mixed
80+
* @throws NotImplementedException
81+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#readLine
82+
*/
83+
public function readLine($a = null)
84+
{
85+
throw new NotImplementedException(__METHOD__);
86+
}
87+
88+
/**
89+
* Tells whether this stream is ready to be read.
90+
*
91+
* @param mixed $a
92+
* @return mixed
93+
* @throws NotImplementedException
94+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#ready
95+
*/
96+
public function ready($a = null)
97+
{
98+
throw new NotImplementedException(__METHOD__);
99+
}
100+
101+
/**
102+
* Resets the stream to the most recent mark.
103+
*
104+
* @param mixed $a
105+
* @return mixed
106+
* @throws NotImplementedException
107+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#reset
108+
*/
109+
public function reset($a = null)
110+
{
111+
throw new NotImplementedException(__METHOD__);
112+
}
113+
114+
/**
115+
* Skips characters.
116+
*
117+
* @param mixed $a
118+
* @return mixed
119+
* @throws NotImplementedException
120+
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/package-summary.html#skip
121+
*/
122+
public function skip($a = null)
123+
{
124+
throw new NotImplementedException(__METHOD__);
125+
}
126+
}

0 commit comments

Comments
 (0)