Examples of PrivilegedOpenStream


Examples of org.terasology.asset.PrivilegedOpenStream

    private OggReader reader;

    public OggStreamingSoundData(URL url) throws IOException {
        this.url = url;
        try {
            PrivilegedOpenStream action = new PrivilegedOpenStream(url);
            reader = new OggReader(AccessController.doPrivileged(action));
        } catch (PrivilegedActionException e) {
            throw new IOException("Could not open stream at " + url, e);
        }
    }
View Full Code Here

Examples of org.terasology.asset.PrivilegedOpenStream

    public void reset() {
        if (reader != null) {
            dispose();
        }
        try {
            PrivilegedOpenStream action = new PrivilegedOpenStream(url);
            reader = new OggReader(AccessController.doPrivileged(action));
        } catch (PrivilegedActionException e) {
            throw new RuntimeException("Failed to reset ogg stream from " + url, e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.