Пример #1
0
 public byte[] getFileContent(RCPFile rcpFile) {
   try {
     String workspacePath = RCPWorkspaceMapper.getMappedName(rcpFile.getPath());
     return FileUtils.loadFile(workspacePath);
   } catch (IOException e) {
     throw new RCPBaseException(e);
   }
 }
Пример #2
0
 public void setFileContent(RCPFile rcpFile, byte[] content) {
   try {
     String workspacePath = RCPWorkspaceMapper.getMappedName(rcpFile.getPath());
     FileUtils.saveFile(workspacePath, content);
   } catch (IOException e) {
     throw new RCPBaseException(e);
   }
 }