Make buffered stream classes package scope.
This commit is contained in:
@@ -53,9 +53,7 @@
|
|||||||
<sequential>
|
<sequential>
|
||||||
<mkdir dir="build/maven-${version}"/>
|
<mkdir dir="build/maven-${version}"/>
|
||||||
<write_pom platform="@{platform}"/>
|
<write_pom platform="@{platform}"/>
|
||||||
<get src="http://downloads.sourceforge.net/project/luaj/luaj-${major}/${version}/luaj-${version}.zip"
|
<copy file="luaj-${version}.zip" todir="build/maven-${version}"/>
|
||||||
dest="build/maven-${version}/luaj-${version}.zip"
|
|
||||||
skipexisting="true"/>
|
|
||||||
<unzip src="build/maven-${version}/luaj-${version}.zip" dest="build/maven-${version}"/>
|
<unzip src="build/maven-${version}/luaj-${version}.zip" dest="build/maven-${version}"/>
|
||||||
<copy file="build/maven-${version}/luaj-${version}/lib/luaj-@{platform}-${version}.jar" todir="build/maven-${version}"/>
|
<copy file="build/maven-${version}/luaj-${version}/lib/luaj-@{platform}-${version}.jar" todir="build/maven-${version}"/>
|
||||||
|
|
||||||
|
|||||||
@@ -300,7 +300,7 @@ public class Globals extends LuaTable {
|
|||||||
/* Abstract base class to provide basic buffered input storage and delivery.
|
/* Abstract base class to provide basic buffered input storage and delivery.
|
||||||
* This class may be moved to its own package in the future.
|
* This class may be moved to its own package in the future.
|
||||||
*/
|
*/
|
||||||
public abstract static class AbstractBufferedStream extends InputStream {
|
abstract static class AbstractBufferedStream extends InputStream {
|
||||||
protected byte[] b;
|
protected byte[] b;
|
||||||
protected int i = 0, j = 0;
|
protected int i = 0, j = 0;
|
||||||
protected AbstractBufferedStream(int buflen) {
|
protected AbstractBufferedStream(int buflen) {
|
||||||
@@ -369,7 +369,7 @@ public class Globals extends LuaTable {
|
|||||||
* as well as speed up normal compilation and reading of lua scripts.
|
* as well as speed up normal compilation and reading of lua scripts.
|
||||||
* This class may be moved to its own package in the future.
|
* This class may be moved to its own package in the future.
|
||||||
*/
|
*/
|
||||||
public static class BufferedStream extends AbstractBufferedStream {
|
static class BufferedStream extends AbstractBufferedStream {
|
||||||
private final InputStream s;
|
private final InputStream s;
|
||||||
public BufferedStream(InputStream s) {
|
public BufferedStream(InputStream s) {
|
||||||
this(128, s);
|
this(128, s);
|
||||||
|
|||||||
Reference in New Issue
Block a user