|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.interstarinc.xmedius.sendfax.Fax
public class Fax
This class is used by a client of the SendFax library to convert a fax model to an XML document.
XMLBuilder,
How a client interacts with the SendFax library| Constructor Summary | |
|---|---|
Fax()
|
|
| Method Summary | |
|---|---|
SendResult |
send(IFaxModel fax,
File xmlFax)
Sends a fax using the supplied parameters. |
SendResult |
send(com.interstarinc.xmedius.sendfax.model.v1.IFaxModel fax,
InputStream xmlFax)
|
void |
toXML(IFaxModel model,
OutputStream target)
This method converts a fax model to an XML document (DOM tree). |
void |
toXML(com.interstarinc.xmedius.sendfax.model.v1.IFaxModel model,
OutputStream target)
|
private void |
validate(com.interstarinc.xmedius.sendfax.model.v1.IFaxModel model)
This method validates a fax model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Fax()
| Method Detail |
|---|
public void toXML(IFaxModel model,
OutputStream target)
throws FaxException
validate method.
If the fax model is valid, this method proceeds to convert it, otherwise it throws a FaxException.
model - The fax model (java beans graph) to be converted.target - The output strean used to save the converted the fax model.
FaxException - If the fax model is not valid or if the XMLBuilder is unable to convert the fax model.IFaxModel,
validate(IFaxModel),
XMLBuilder
public void toXML(com.interstarinc.xmedius.sendfax.model.v1.IFaxModel model,
OutputStream target)
throws FaxException
model - target -
FaxExceptiontoXML(IFaxModel, OutputStream)
private void validate(com.interstarinc.xmedius.sendfax.model.v1.IFaxModel model)
throws FaxException
model - The fax model to be validated.
FaxException - If the fax model is not valid.IFaxModel
public SendResult send(IFaxModel fax,
File xmlFax)
throws FaxException
xmlFax.SendFax.send().
fax - the fax to be sent.xmlFax - this fax's xml representation used by the Xml Gateway.SendResult instance carrying the fax transmission outcome.
FaxException - if any error occurstoXML(IFaxModel, OutputStream),
SendFax.send(com.interstarinc.xmedius.sendfax.model.v1.IFaxModel, InputStream, String[])
public SendResult send(com.interstarinc.xmedius.sendfax.model.v1.IFaxModel fax,
InputStream xmlFax)
throws FaxException
fax - xmlFax -
FaxExceptionsend(IFaxModel, File)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||