@Test public void testInitializeWithString() throws IOException { String content = "content"; String contentType = "application/json"; ParseByteArrayHttpBody body = new ParseByteArrayHttpBody(content, contentType); assertArrayEquals(content.getBytes(), ParseIOUtils.toByteArray(body.getContent())); assertEquals(contentType, body.getContentType()); assertEquals(7, body.getContentLength()); }
@Override public InputStream getContent() { return contentInputStream; }
ParseByteArrayHttpBody extends ParseHttpBody { @Override public InputStream getContent() { return contentInputStream; } }
ParseByteArrayHttpBody extends ParseHttpBody { @Override public InputStream getContent() { return contentInputStream; } ParseByteArrayHttpBody(String content, String contentType);  ParseByteArrayHttpBody(byte[] content, String contentType); }
ParseByteArrayHttpBody extends ParseHttpBody { @Override public InputStream getContent() { return contentInputStream; } ParseByteArrayHttpBody(String content, String contentType);  ParseByteArrayHttpBody(byte[] content, String contentType); @Override InputStream getContent(); @Override void writeTo(OutputStream out); }
ParseByteArrayHttpBody extends ParseHttpBody { @Override public InputStream getContent() { return contentInputStream; } ParseByteArrayHttpBody(String content, String contentType);  ParseByteArrayHttpBody(byte[] content, String contentType); @Override InputStream getContent(); @Override void writeTo(OutputStream out);  }