Package org.apache.olio.webapp.util.fs

Examples of org.apache.olio.webapp.util.fs.FileSystem.create()


        }
    }
   
    public void write (String path) throws IOException {
        FileSystem fs = ServiceLocator.getInstance().getFileSystem();
        OutputStream oStream = fs.create(path);
        ImageIO.write(image, format, oStream);
        try {
            oStream.close();
        }
        catch (Exception e) {}
View Full Code Here


    bThumb.getGraphics().drawImage(image.getScaledInstance(thumbWidth, thumbHeight,
                Image.SCALE_FAST), 0, 0, thumbWidth, thumbHeight, null);
       
    // Store image based on local of distributed files systems
        FileSystem fs = ServiceLocator.getInstance().getFileSystem();
        OutputStream oStream = fs.create(to);
        ImageIO.write(bThumb, format, oStream);
   
        try {
            oStream.close();
        }
View Full Code Here

        op.filter(image, th);

        // Added for distributed file system support
        // Store image based on local of distributed files systems
        FileSystem fs = ServiceLocator.getInstance().getFileSystem();
        OutputStream oStream = fs.create(to);
        ImageIO.write(th, format, oStream);

        try {
            oStream.close();
        }
View Full Code Here

        FileSystem fs = locator.getFileSystem();

        logger.fine("Getting fileItem from memory - " + itemName);

        OutputStream fout = fs.create(fileName);

        // It would have been more efficient to use NIO if we are writing to
        // the local filesystem. However, since we need to support DFS,
        // a simple solution is provided.
        // TO DO: Optimize write if required.
View Full Code Here

        OutputStream imgOut = null;
        OutputStream thumbOut = null;
        InputStream is = null;
        try {
            imgOut = fs.create(imageName);
            thumbOut = fs.create(thumbnailName);
        // It would have been more efficient to use NIO if we are writing to
        // the local filesystem. However, since we need to support DFS,
        // a simple solution is provided.
        // TO DO: Optimize write if required.
View Full Code Here

        OutputStream imgOut = null;
        OutputStream thumbOut = null;
        InputStream is = null;
        try {
            imgOut = fs.create(imageName);
            thumbOut = fs.create(thumbnailName);
        // It would have been more efficient to use NIO if we are writing to
        // the local filesystem. However, since we need to support DFS,
        // a simple solution is provided.
        // TO DO: Optimize write if required.
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.