code: public void write( String digest, ChecksumFile file, String algorithm )
          throws ExecutionTargetWriteException
      {
          try
          {
              File outputFileDirectory = ( outputDirectory != null ) ? outputDirectory : file.getFile().getParentFile();
              String fileExtension = DigesterFactory.getInstance().getFileDigester(algorithm).getFileExtension();
              String outputFileName = file.getFile().getName() + fileExtension;
              File outputFile = new File(outputFileDirectory.getPath(), outputFileName);
              StringBuilder digestToPrint = new StringBuilder(digest);
              if(appendFilename){
                  digestToPrint.append("  ");
                  digestToPrint.append(file.getFile().getName());
              }
              FileUtils.fileWrite( outputFile, digestToPrint.toString() );
             
              for (ArtifactListener artifactListener : artifactListeners) {
                  artifactListener.artifactCreated(outputFile, fileExtension, file.getType(), file.getClassifier());
              }
          }
          catch ( IOException e )
          {
              throw new ExecutionTargetWriteException( e.getMessage() );
          }
          catch ( NoSuchAlgorithmException e )
          {
              throw new ExecutionTargetWriteException( e.getMessage() );
          }
      }
docs: {@inheritDoc}