Class PublicationDirectoryVisitorWithMetaDataRmi
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.publication.metadata.PublicationDirectoryVisitorWithMetaDataRmi
-
- All Implemented Interfaces:
java.nio.file.FileVisitor<java.nio.file.Path>
public class PublicationDirectoryVisitorWithMetaDataRmi extends java.lang.Object implements java.nio.file.FileVisitor<java.nio.file.Path>
Implementation ofFileVisitor
to walk a file system tree and store the object into eDAL.
-
-
Constructor Summary
Constructors Constructor Description PublicationDirectoryVisitorWithMetaDataRmi(javax.swing.JProgressBar overallProgressBar, javax.swing.JProgressBar fileProgressBar, ClientPrimaryDataDirectory currentDirectory, java.nio.file.Path path, MetaData metaData, boolean updateEdalObject, boolean createSeparateFolder, java.util.concurrent.CountDownLatch latch)
-
Method Summary
Modifier and Type Method Description ClientPrimaryDataDirectory
getRootDirectoryToPublish()
java.nio.file.FileVisitResult
postVisitDirectory(java.nio.file.Path dir, java.io.IOException exc)
java.nio.file.FileVisitResult
preVisitDirectory(java.nio.file.Path dir, java.nio.file.attribute.BasicFileAttributes attrs)
java.nio.file.FileVisitResult
visitFile(java.nio.file.Path file, java.nio.file.attribute.BasicFileAttributes attrs)
java.nio.file.FileVisitResult
visitFileFailed(java.nio.file.Path file, java.io.IOException exc)
-
-
-
Constructor Detail
-
PublicationDirectoryVisitorWithMetaDataRmi
public PublicationDirectoryVisitorWithMetaDataRmi(javax.swing.JProgressBar overallProgressBar, javax.swing.JProgressBar fileProgressBar, ClientPrimaryDataDirectory currentDirectory, java.nio.file.Path path, MetaData metaData, boolean updateEdalObject, boolean createSeparateFolder, java.util.concurrent.CountDownLatch latch)
-
-
Method Detail
-
getRootDirectoryToPublish
public ClientPrimaryDataDirectory getRootDirectoryToPublish()
-
preVisitDirectory
public java.nio.file.FileVisitResult preVisitDirectory(java.nio.file.Path dir, java.nio.file.attribute.BasicFileAttributes attrs) throws java.io.IOException
- Specified by:
preVisitDirectory
in interfacejava.nio.file.FileVisitor<java.nio.file.Path>
- Throws:
java.io.IOException
-
visitFile
public java.nio.file.FileVisitResult visitFile(java.nio.file.Path file, java.nio.file.attribute.BasicFileAttributes attrs) throws java.io.IOException
- Specified by:
visitFile
in interfacejava.nio.file.FileVisitor<java.nio.file.Path>
- Throws:
java.io.IOException
-
visitFileFailed
public java.nio.file.FileVisitResult visitFileFailed(java.nio.file.Path file, java.io.IOException exc) throws java.io.IOException
- Specified by:
visitFileFailed
in interfacejava.nio.file.FileVisitor<java.nio.file.Path>
- Throws:
java.io.IOException
-
postVisitDirectory
public java.nio.file.FileVisitResult postVisitDirectory(java.nio.file.Path dir, java.io.IOException exc) throws java.io.IOException
- Specified by:
postVisitDirectory
in interfacejava.nio.file.FileVisitor<java.nio.file.Path>
- Throws:
java.io.IOException
-
-