http://git-wip-us.apache.org/repos/asf/vxquery/blob/51a98938/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/BufferedReaderStream.java
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/BufferedReaderStream.java
 
b/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/BufferedReaderStream.java
deleted file mode 100644
index 7100025..0000000
--- 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/BufferedReaderStream.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.vxquery.xtest.util.tests;
-
-import java.io.BufferedReader;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStreamReader;
-
-public class BufferedReaderStream extends AbstractDiskTest {
-    @Override
-    public String getMessage() {
-        return "Buffered Reader - Stream";
-    }
-
-    @Override
-    public long test(String filename, int bufferSize) throws IOException {
-        BufferedReader f;
-        if (bufferSize > 0) {
-            f = new BufferedReader(new InputStreamReader(new 
FileInputStream(filename)), bufferSize);
-        } else {
-            f = new BufferedReader(new InputStreamReader(new 
FileInputStream(filename)));
-        }
-        int b;
-        long byteCount = 0L;
-        long checkSum = 0L;
-        while ((b = f.read()) != -1) {
-            checkSum += b;
-            byteCount++;
-        }
-        f.close();
-        return byteCount;
-    }
-}

http://git-wip-us.apache.org/repos/asf/vxquery/blob/51a98938/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/BufferedStream.java
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/BufferedStream.java
 
b/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/BufferedStream.java
deleted file mode 100644
index 5751307..0000000
--- 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/BufferedStream.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.vxquery.xtest.util.tests;
-
-import java.io.BufferedInputStream;
-import java.io.FileInputStream;
-import java.io.IOException;
-
-public class BufferedStream extends AbstractDiskTest {
-    @Override
-    public String getMessage() {
-        return "Buffered Stream";
-    }
-
-    @Override
-    public long test(String filename, int bufferSize) throws IOException {
-        BufferedInputStream f;
-        if (bufferSize > 0) {
-            f = new BufferedInputStream(new FileInputStream(filename), 
bufferSize);
-        } else {
-            f = new BufferedInputStream(new FileInputStream(filename));
-        }
-        int b;
-        long byteCount = 0L;
-        long checkSum = 0L;
-        while ((b = f.read()) != -1) {
-            checkSum += b;
-            byteCount++;
-        }
-        f.close();
-        return byteCount;
-    }
-}

http://git-wip-us.apache.org/repos/asf/vxquery/blob/51a98938/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/IDiskTest.java
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/IDiskTest.java
 
b/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/IDiskTest.java
deleted file mode 100644
index 581d783..0000000
--- 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/IDiskTest.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.vxquery.xtest.util.tests;
-
-import java.io.File;
-
-import org.xml.sax.XMLReader;
-
-public interface IDiskTest {
-    public void setBufferSize(int bufferSize);
-
-    public void setFile(File file);
-
-    public void setParser(XMLReader parser);
-
-    public void run();
-
-    public void start();
-}

http://git-wip-us.apache.org/repos/asf/vxquery/blob/51a98938/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedBufferedByteStream.java
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedBufferedByteStream.java
 
b/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedBufferedByteStream.java
deleted file mode 100644
index 9fc93c4..0000000
--- 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedBufferedByteStream.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.vxquery.xtest.util.tests;
-
-import java.io.BufferedInputStream;
-import java.io.FileInputStream;
-import java.io.IOException;
-
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
-public class ParsedBufferedByteStream extends AbstractDiskTest {
-    @Override
-    public String getMessage() {
-        return "Parsed - Buffered Byte Stream";
-    }
-
-    @Override
-    public long test(String filename, int bufferSize) throws IOException {
-        try {
-            BufferedInputStream f;
-            if (bufferSize > 0) {
-                f = new BufferedInputStream(new FileInputStream(filename), 
bufferSize);
-            } else {
-                f = new BufferedInputStream(new FileInputStream(filename));
-            }
-            InputSource in = new InputSource();
-            in.setByteStream(f);
-            in.setEncoding("UTF-8");
-            parser.parse(in);
-        } catch (SAXException e) {
-            e.printStackTrace();
-        }
-        return -1;
-    }
-}

http://git-wip-us.apache.org/repos/asf/vxquery/blob/51a98938/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedBufferedCharacterStream.java
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedBufferedCharacterStream.java
 
b/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedBufferedCharacterStream.java
deleted file mode 100644
index 1cacee6..0000000
--- 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedBufferedCharacterStream.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.vxquery.xtest.util.tests;
-
-import java.io.BufferedReader;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStreamReader;
-
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
-public class ParsedBufferedCharacterStream extends AbstractDiskTest implements 
IDiskTest {
-    @Override
-    public String getMessage() {
-        return "Parsed - Buffered Character Stream";
-    }
-
-    @Override
-    public long test(String filename, int bufferSize) throws IOException {
-        try {
-            BufferedReader f;
-            if (bufferSize > 0) {
-                f = new BufferedReader(new InputStreamReader(new 
FileInputStream(filename)), bufferSize);
-            } else {
-                f = new BufferedReader(new InputStreamReader(new 
FileInputStream(filename)));
-            }
-            InputSource in = new InputSource();
-            in.setCharacterStream(f);
-            parser.parse(in);
-        } catch (SAXException e) {
-            e.printStackTrace();
-        }
-        return -1;
-    }
-}

http://git-wip-us.apache.org/repos/asf/vxquery/blob/51a98938/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedByteStream.java
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedByteStream.java
 
b/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedByteStream.java
deleted file mode 100644
index 783424a..0000000
--- 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedByteStream.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.vxquery.xtest.util.tests;
-
-import java.io.FileInputStream;
-import java.io.IOException;
-
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
-public class ParsedByteStream extends AbstractDiskTest {
-    @Override
-    public String getMessage() {
-        return "Parsed - Byte Stream";
-    }
-
-    @Override
-    public boolean isBuffered() {
-        return false;
-    }
-
-    @Override
-    public long test(String filename, int bufferSize) throws IOException {
-        try {
-            InputSource in = new InputSource();
-            in.setByteStream(new FileInputStream(filename));
-            in.setEncoding("UTF-8");
-            parser.parse(in);
-        } catch (SAXException e) {
-            e.printStackTrace();
-        }
-        return -1;
-    }
-}

http://git-wip-us.apache.org/repos/asf/vxquery/blob/51a98938/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedCharacterStream.java
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedCharacterStream.java
 
b/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedCharacterStream.java
deleted file mode 100644
index 0b292a3..0000000
--- 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ParsedCharacterStream.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.vxquery.xtest.util.tests;
-
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStreamReader;
-
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
-public class ParsedCharacterStream extends AbstractDiskTest {
-    @Override
-    public String getMessage() {
-        return "Parsed - Character Stream";
-    }
-
-    @Override
-    public boolean isBuffered() {
-        return false;
-    }
-
-    @Override
-    public long test(String filename, int bufferSize) throws IOException {
-        try {
-            InputStreamReader f = new InputStreamReader(new 
FileInputStream(filename));
-            InputSource in = new InputSource();
-            in.setCharacterStream(f);
-            parser.parse(in);
-        } catch (SAXException e) {
-            e.printStackTrace();
-        }
-        return -1;
-    }
-}

http://git-wip-us.apache.org/repos/asf/vxquery/blob/51a98938/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ReaderBufferedStream.java
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ReaderBufferedStream.java
 
b/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ReaderBufferedStream.java
deleted file mode 100644
index 721dd3a..0000000
--- 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ReaderBufferedStream.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.vxquery.xtest.util.tests;
-
-import java.io.BufferedInputStream;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStreamReader;
-
-public class ReaderBufferedStream extends AbstractDiskTest {
-    @Override
-    public String getMessage() {
-        return "Reader - Buffered Stream";
-    }
-
-    @Override
-    public long test(String filename, int bufferSize) throws IOException {
-        InputStreamReader f;
-        if (bufferSize > 0) {
-            f = new InputStreamReader(new BufferedInputStream(new 
FileInputStream(filename), bufferSize));
-        } else {
-            f = new InputStreamReader(new BufferedInputStream(new 
FileInputStream(filename)));
-        }
-        int b;
-        long byteCount = 0L;
-        long checkSum = 0L;
-        while ((b = f.read()) != -1) {
-            checkSum += b;
-            byteCount++;
-        }
-        f.close();
-        return byteCount;
-    }
-}

http://git-wip-us.apache.org/repos/asf/vxquery/blob/51a98938/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ReaderStream.java
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ReaderStream.java
 
b/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ReaderStream.java
deleted file mode 100644
index 4fdbdf9..0000000
--- 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/ReaderStream.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.vxquery.xtest.util.tests;
-
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStreamReader;
-
-public class ReaderStream extends AbstractDiskTest {
-    @Override
-    public String getMessage() {
-        return "Reader - Stream";
-    }
-
-    @Override
-    public boolean isBuffered() {
-        return false;
-    }
-
-    @Override
-    public long test(String filename, int bufferSize) throws IOException {
-        InputStreamReader f = new InputStreamReader(new 
FileInputStream(filename));
-        int b;
-        long byteCount = 0L;
-        long checkSum = 0L;
-        while ((b = f.read()) != -1) {
-            checkSum += b;
-            byteCount++;
-        }
-        f.close();
-        return byteCount;
-    }
-}

http://git-wip-us.apache.org/repos/asf/vxquery/blob/51a98938/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/Stream.java
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/Stream.java 
b/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/Stream.java
deleted file mode 100644
index 7890b2a..0000000
--- 
a/vxquery-xtest/src/main/java/org/apache/vxquery/xtest/util/tests/Stream.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.vxquery.xtest.util.tests;
-
-import java.io.FileInputStream;
-import java.io.IOException;
-
-public class Stream extends AbstractDiskTest {
-    @Override
-    public String getMessage() {
-        return "Stream";
-    }
-
-    @Override
-    public boolean isBuffered() {
-        return false;
-    }
-
-    @Override
-    public long test(String filename, int bufferSize) throws IOException {
-        FileInputStream f = new FileInputStream(filename);
-        int b;
-        long byteCount = 0L;
-        long checkSum = 0L;
-        while ((b = f.read()) != -1) {
-            checkSum += b;
-            byteCount++;
-        }
-        f.close();
-        return byteCount;
-    }
-}

Reply via email to