Code example for URI

Methods: toURL

0
import java.io.OutputStream; 
import java.net.URI; 
import java.util.List; 
import java.util.UUID; 
 
 
@SuppressWarnings({"unchecked"}) 
public class FileBinaryDao implements BinaryDao { 
 
    private Log log = LogFactory.getLog(getClass());
 
    private File binaryStorageDirectory;
 
    public FileBinaryDao(File binaryStorageDirectory) {
        this.binaryStorageDirectory = binaryStorageDirectory;
    } 
 
    public Binary getBinary(final String id) {
        try { 
            File infoFile = new File(binaryStorageDirectory, id + ".info");