Skip to content

Instantly share code, notes, and snippets.

@ALRubinger
Created August 16, 2010 13:30
Show Gist options
  • Save ALRubinger/526938 to your computer and use it in GitHub Desktop.
Save ALRubinger/526938 to your computer and use it in GitHub Desktop.
public interface Descriptor
{
/**
* Exports the descriptor XML as a {@link String}
* @return
* @throws DescriptorExportException
*/
String exportAsString() throws DescriptorExportException;
/**
* Export the descriptor XML to a given {@link OutputStream}.
* The {@link OutputStream} will not be flushed or closed by this operation.
*
* @param output Where to export
* @throws IllegalArgumentException if output is null
* @throws DescriptorExportException if problems exporting
*/
void exportTo(OutputStream output) throws DescriptorExportException, IllegalArgumentException;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment