test_class.declarator: TEST_XML_CONTENT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
                                                     + "<book send-by-post=\"true\">"
                                                     + "  <title>Java and XML Data Binding</title>"
                                                     + "  <author>Brett McLaughlin</author>"
                                                     + "  <price currency=\"USD\">34.95</price>"
                                                     + "  <member-price currency=\"USD\">26.56</member-price>"
                                                     + "</book>"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_XML_CONTENT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
                                                     + "<book send-by-post=\"true\">"
                                                     + "  <title>Java and XML Data Binding</title>"
                                                     + "  <author>Brett McLaughlin</author>"
                                                     + "  <price currency=\"USD\">34.95</price>"
                                                     + "  <member-price currency=\"USD\">26.56</member-price>"
                                                     + "</book>";
test_class.type: String
test_class.var_name: TEST_XML_CONTENT
test_class.declarator: TEST_XML_CONTENT_BYTES = TEST_XML_CONTENT.getBytes()
test_class.modifier: private static final
test_class.original_string: private static final byte[] TEST_XML_CONTENT_BYTES = TEST_XML_CONTENT.getBytes();
test_class.type: byte[]
test_class.var_name: TEST_XML_CONTENT_BYTES
test_class.declarator: reader
test_class.modifier: private
test_class.original_string: private MessageBodyReader reader;
test_class.type: MessageBodyReader
test_class.var_name: reader
test_class.declarator: writer
test_class.modifier: private
test_class.original_string: private MessageBodyWriter writer;
test_class.type: MessageBodyWriter
test_class.var_name: writer
test_class.file: everrest-core/src/test/java/org/everrest/core/impl/provider/JAXBObjectEntityProviderTest.java
test_class.identifier: JAXBObjectEntityProviderTest
test_case.body: @Test
      public void writesObjectToOutputStream() throws Exception {
          Book book = createBook();
  
          ByteArrayOutputStream out = new ByteArrayOutputStream();
          writer.writeTo(book, Book.class, Book.class, null, APPLICATION_XML_TYPE, null, out);
  
          Book unmarshaledBook = unmarshalBook(out.toByteArray());
          assertEquals(book.getTitle(), unmarshaledBook.getTitle());
          assertEquals(book.isSendByPost(), unmarshaledBook.isSendByPost());
          assertEquals(book.getAuthor(), unmarshaledBook.getAuthor());
          assertEquals(book.getPrice().getCurrency(), unmarshaledBook.getPrice().getCurrency());
          assertEquals(book.getPrice().getValue(), unmarshaledBook.getPrice().getValue());
          assertEquals(book.getMemberPrice().getCurrency(), unmarshaledBook.getMemberPrice().getCurrency());
          assertEquals(book.getMemberPrice().getValue(), unmarshaledBook.getMemberPrice().getValue());
      }
test_case.class_method_signature: JAXBObjectEntityProviderTest.writesObjectToOutputStream()
test_case.full_signature: @Test public void writesObjectToOutputStream()
test_case.identifier: writesObjectToOutputStream
test_case.invocations: createBook writeTo unmarshalBook toByteArray assertEquals getTitle getTitle assertEquals isSendByPost isSendByPost assertEquals getAuthor getAuthor assertEquals getCurrency getPrice getCurrency getPrice assertEquals getValue getPrice getValue getPrice assertEquals getCurrency getMemberPrice getCurrency getMemberPrice assertEquals getValue getMemberPrice getValue getMemberPrice
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void writesObjectToOutputStream()
focal_class.declarator: LOG = LoggerFactory.getLogger(JAXBObjectEntityProvider.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(JAXBObjectEntityProvider.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: providers
focal_class.modifier: private
focal_class.original_string: private Providers providers;
focal_class.type: Providers
focal_class.var_name: providers
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/provider/JAXBObjectEntityProvider.java
focal_class.identifier: JAXBObjectEntityProvider
focal_class.interfaces: implements EntityProvider<Object>
focal_class.class_method_signature: JAXBObjectEntityProvider.JAXBObjectEntityProvider(@Context Providers providers)
focal_class.full_signature: public  JAXBObjectEntityProvider(@Context Providers providers)
focal_class.identifier: JAXBObjectEntityProvider
focal_class.modifiers: public
focal_class.parameters: (@Context Providers providers)
focal_class.signature:  JAXBObjectEntityProvider(@Context Providers providers)
focal_class.class_method_signature: JAXBObjectEntityProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.full_signature: @Override public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.identifier: isReadable
focal_class.modifiers: @Override public
focal_class.parameters: (Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.return: boolean
focal_class.signature: boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.class_method_signature: JAXBObjectEntityProvider.readFrom(Class<Object> type,
                             Type genericType,
                             Annotation[] annotations,
                             MediaType mediaType,
                             MultivaluedMap<String, String> httpHeaders,
                             InputStream entityStream)
focal_class.full_signature: @Override public Object readFrom(Class<Object> type,
                             Type genericType,
                             Annotation[] annotations,
                             MediaType mediaType,
                             MultivaluedMap<String, String> httpHeaders,
                             InputStream entityStream)
focal_class.identifier: readFrom
focal_class.modifiers: @Override public
focal_class.parameters: (Class<Object> type,
                             Type genericType,
                             Annotation[] annotations,
                             MediaType mediaType,
                             MultivaluedMap<String, String> httpHeaders,
                             InputStream entityStream)
focal_class.return: Object
focal_class.signature: Object readFrom(Class<Object> type,
                             Type genericType,
                             Annotation[] annotations,
                             MediaType mediaType,
                             MultivaluedMap<String, String> httpHeaders,
                             InputStream entityStream)
focal_class.class_method_signature: JAXBObjectEntityProvider.getSize(Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.full_signature: @Override public long getSize(Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.identifier: getSize
focal_class.modifiers: @Override public
focal_class.parameters: (Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.return: long
focal_class.signature: long getSize(Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.class_method_signature: JAXBObjectEntityProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.full_signature: @Override public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.identifier: isWriteable
focal_class.modifiers: @Override public
focal_class.parameters: (Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.return: boolean
focal_class.signature: boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
focal_class.class_method_signature: JAXBObjectEntityProvider.writeTo(Object t,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_class.full_signature: @Override public void writeTo(Object t,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_class.identifier: writeTo
focal_class.modifiers: @Override public
focal_class.parameters: (Object t,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_class.return: void
focal_class.signature: void writeTo(Object t,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_class.class_method_signature: JAXBObjectEntityProvider.getCharset(MediaType mediaType)
focal_class.full_signature: private String getCharset(MediaType mediaType)
focal_class.identifier: getCharset
focal_class.modifiers: private
focal_class.parameters: (MediaType mediaType)
focal_class.return: String
focal_class.signature: String getCharset(MediaType mediaType)
focal_class.class_method_signature: JAXBObjectEntityProvider.getJAXBContext(Class<?> type, MediaType mediaType)
focal_class.full_signature: protected JAXBContext getJAXBContext(Class<?> type, MediaType mediaType)
focal_class.identifier: getJAXBContext
focal_class.modifiers: protected
focal_class.parameters: (Class<?> type, MediaType mediaType)
focal_class.return: JAXBContext
focal_class.signature: JAXBContext getJAXBContext(Class<?> type, MediaType mediaType)
focal_method.body: @Override
      public void writeTo(Object t,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream) throws IOException {
          try {
              JAXBContext jaxbContext = getJAXBContext(type, mediaType);
              Marshaller marshaller = jaxbContext.createMarshaller();
              String charset = getCharset(mediaType);
              if (!isNullOrEmpty(charset)) {
                  marshaller.setProperty(Marshaller.JAXB_ENCODING, charset);
              }
  
              marshaller.marshal(t, entityStream);
          } catch (JAXBException e) {
              throw new IOException(String.format("Can't write to output stream, %s", e));
          }
      }
focal_method.class_method_signature: JAXBObjectEntityProvider.writeTo(Object t,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_method.full_signature: @Override public void writeTo(Object t,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_method.identifier: writeTo
focal_method.invocations: getJAXBContext createMarshaller getCharset isNullOrEmpty setProperty marshal format
focal_method.modifiers: @Override public
focal_method.parameters: (Object t,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)
focal_method.return: void
focal_method.signature: void writeTo(Object t,
                          Class<?> type,
                          Type genericType,
                          Annotation[] annotations,
                          MediaType mediaType,
                          MultivaluedMap<String, Object> httpHeaders,
                          OutputStream entityStream)