public class NewDiskCacheOutputStream extends org.bimserver.plugins.serializers.RemovableFileOutputStream implements DiskCacheItem
| Constructor and Description |
|---|
NewDiskCacheOutputStream(NewDiskCacheManager diskCacheManager,
Path file,
DownloadDescriptor downloadDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
close() |
DownloadDescriptor |
getDownloadDescriptor() |
String |
getName() |
void |
remove() |
void |
waitForFinish() |
write, writeflush, writepublic NewDiskCacheOutputStream(NewDiskCacheManager diskCacheManager, Path file, DownloadDescriptor downloadDescriptor) throws FileNotFoundException
FileNotFoundExceptionpublic DownloadDescriptor getDownloadDescriptor()
getDownloadDescriptor in interface DiskCacheItempublic void waitForFinish()
throws InterruptedException
waitForFinish in interface DiskCacheItemInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.bimserver.plugins.serializers.RemovableFileOutputStreamIOExceptionpublic void remove()
throws IOException
remove in class org.bimserver.plugins.serializers.RemovableFileOutputStreamIOExceptionpublic String getName()
public void cancel()
throws IOException
cancel in class org.bimserver.plugins.serializers.RemovableFileOutputStreamIOExceptionCopyright © 2019 OpenSource BIM. All rights reserved.