@Override
    public Object load(AssetInfo assetInfo) {
        Scanner scan = new Scanner(assetInfo.openStream());
        StringBuilder sb = new StringBuilder();
        try {
            while (scan.hasNextLine()) {
                sb.append(scan.nextLine()).append('\n');
            }
        } finally {
            scan.close();
        }
        return sb.toString();
    }
An example implementation of {@link AssetLoader} to load text
files as strings.
jme3-core/src/test/java/com/jme3/asset/TextLoader.java