Code example for InputStream

Methods: availablemarkmarkSupportedreadreset

     * @param t            the instance of the JAXB type. 
     * @param mediaType    the meida type. 
     * @param c            the character set to serialize characters to. 
     * @param m            the marshaller to marshaller the instance of the JAXB type. 
     * @param entityStream the output stream to marshal to. 
     * @throws javax.xml.bind.JAXBException 
    protected void writeTo(Object t, MediaType mediaType, Charset c,
                           Marshaller m, OutputStream entityStream)
            throws JAXBException { 
        m.marshal(t, entityStream);
Experience pair programming with AI  Get Codota for Java