Package org.mojavemvc.views

Examples of org.mojavemvc.views.InputStreamView


    public InputStreamView getPlainText() {
       
        String content = "Hello";
        ByteArrayInputStream in = new ByteArrayInputStream(content.getBytes());
       
        InputStreamView view = new InputStreamView(in, "text/plain");
        view.setContentLength(content.getBytes().length);
        return view;
    }
View Full Code Here

TOP

Related Classes of org.mojavemvc.views.InputStreamView

Copyright © 2018 www.massapicom. 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.