Back to project page epgreader-android.
The source code is released under:
Apache License
If you think the Android project epgreader-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jeffpalm.android.util.urls; /*from w w w. ja v a2s . c o m*/ import java.io.IOException; import java.io.InputStream; public class StringInputStream extends InputStream { private final String string; private int currentIndex; public StringInputStream(String string) { this.string = string; } @Override public int read() throws IOException { return currentIndex >= string.length() ? -1 : string.charAt(currentIndex++); } /** @return the underlying string */ public String getString() { return string; } }