Skip to content

Commit

Permalink
Added method to save file with String content
Browse files Browse the repository at this point in the history
  • Loading branch information
olas committed Dec 28, 2011
1 parent 3afb083 commit 1da81e0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Expand Up @@ -91,6 +91,14 @@ public void open( final IBioObject bioObject, final String editor)
@TestMethods("testSaveAndRemove_String")
public void save(String filePath, InputStream toWrite);

@Recorded
@PublishedMethod(
params = "String filePath, String content",
methodSummary = "Save the content of the String to the given path."
)
public void save(String filePath, String toWrite);


@Recorded
@TestMethods("testSaveAndRemove_IFile")
public void save( IFile file,
Expand Down
Expand Up @@ -191,6 +191,12 @@ public void save( IFile target,
save ( target, toWrite, null, monitor);
}

public void save( IFile target,
String toWrite,
IProgressMonitor monitor ) {
save ( target, new ByteArrayInputStream(toWrite.getBytes()), null, monitor);
}

public void save( final IFile target,
InputStream toWrite,
Runnable callbackFunction,
Expand Down

0 comments on commit 1da81e0

Please sign in to comment.