コード例 #1
0
 @NotNull
 @Override
 public List<String> listSubFiles(@NotNull String fileSpec, @NotNull RoamingType roamingType) {
   if (myRoamingType == roamingType) {
     return Arrays.asList(myProvider.listSubFiles(fileSpec, roamingType));
   } else {
     return Collections.emptyList();
   }
 }
コード例 #2
0
 @Override
 public void saveContent(
     @NotNull String fileSpec,
     @NotNull byte[] content,
     int size,
     @NotNull RoamingType roamingType,
     boolean async)
     throws IOException {
   myProvider.saveContent(
       fileSpec, new BufferExposingByteArrayInputStream(content, size), size, roamingType, async);
 }
コード例 #3
0
 @Override
 public void delete(@NotNull String fileSpec, @NotNull RoamingType roamingType) {
   if (myRoamingType == roamingType) {
     myProvider.deleteFile(fileSpec, roamingType);
   }
 }
コード例 #4
0
 @Nullable
 @Override
 public InputStream loadContent(@NotNull String fileSpec, @NotNull RoamingType roamingType)
     throws IOException {
   return myRoamingType == roamingType ? myProvider.loadContent(fileSpec, roamingType) : null;
 }
コード例 #5
0
 @Override
 public boolean isEnabled() {
   return myProvider.isEnabled();
 }