Remove other GWT vestiges.

This commit is contained in:
Michael Bayne
2023-11-15 09:52:56 -08:00
parent 940af397c4
commit d1b585fa7d
6 changed files with 0 additions and 95 deletions
@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module>
<source path="mustache"/>
<super-source path="super"/>
</module>
@@ -1,20 +0,0 @@
//
// $Id$
package com.samskivert.mustache;
import java.util.HashMap;
import java.util.Map;
/**
* A collector used when running in GWT.
*/
public class DefaultCollector extends BasicCollector
{
@Override
public <K,V> Map<K,V> createFetcherCache () {
return new HashMap<K,V>();
}
// TODO: override createFetcher and do some magic for JavaScript/JSON objects
}
@@ -1,13 +0,0 @@
//
// $Id$
package java.io;
/**
* A minimal version of {@code Reader} to satisfy GWT.
*/
public abstract class Reader
{
public abstract int read () throws IOException;
public abstract void close () throws IOException;
}
@@ -1,23 +0,0 @@
//
// $Id$
package java.io;
/**
* A basic implementation of {@code StringReader} for use in GWT.
*/
public class StringReader extends Reader
{
public StringReader (String data) {
_data = data;
}
public int read () throws IOException {
return (_pos >= _data.length()) ? -1 : _data.charAt(_pos++);
}
public void close () throws IOException {}
protected final String _data;
protected int _pos;
}
@@ -1,20 +0,0 @@
//
// $Id$
package java.io;
/**
* A basic implementation of {@code StringReader} for use in GWT.
*/
public class StringWriter extends Writer
{
public void write (String text) throws IOException {
_buf.append(text);
}
@Override public String toString () {
return _buf.toString();
}
protected final StringBuilder _buf = new StringBuilder();
}
@@ -1,14 +0,0 @@
//
// $Id$
package java.io;
/**
* A minimal version of {@code Writer} to satisfy GWT.
*/
public abstract class Writer
{
public abstract void write (String text) throws IOException;
public abstract Writer append (CharSequence text) throws IOException;
}