Package org.incenp.obofoundry.dicer
Class IDPolicyWriter
java.lang.Object
org.incenp.obofoundry.dicer.IDPolicyWriter
A class to serialise an ID policy to file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidWrites a policy to a file.voidwrite(IDPolicy policy, OutputStream stream) Writes a policy to a stream.voidWrites a policy to a Writer object.voidWrites a policy to a file.
-
Constructor Details
-
IDPolicyWriter
public IDPolicyWriter()
-
-
Method Details
-
write
Writes a policy to a file.- Parameters:
policy- The policy to write.filename- The name of the file to write the policy to.- Throws:
IOException- If any I/O error occurs when attempting to write to the file.
-
write
Writes a policy to a file.- Parameters:
policy- The policy to write.file- The file to write the policy to.- Throws:
IOException- If any I/O error occurs when attempting to write to the file.
-
write
Writes a policy to a stream.- Parameters:
policy- The policy to write.stream- The stream to write the policy to.- Throws:
IOException- If any I/O error occurs when attempting to write to the stream.
-
write
Writes a policy to a Writer object.- Parameters:
policy- The policy to write.writer- The writer object to write the policy to.- Throws:
IOException- If any I/O error occurs when attempting to write to the writer object.
-