test_class.declarator: name = "stringpart"
test_class.original_string: String name = "stringpart";
test_class.type: String
test_class.var_name: name
test_class.declarator: content = "content is here."
test_class.original_string: String content = "content is here.";
test_class.type: String
test_class.var_name: content
test_class.declarator: charset = "utf-8"
test_class.original_string: String charset = "utf-8";
test_class.type: String
test_class.var_name: charset
test_class.file: volleyer/src/test/java/com/navercorp/volleyextensions/volleyer/multipart/StringPartTest.java
test_class.identifier: StringPartTest
test_case.body: @Test(expected = IOException.class)
  	public void shouldThrowIOExceptionWhenInvalidCharset() throws IOException {
  		// Given
  		String invalidCharset = "@MSADG";
  		Part part = new StringPart(name, content, invalidCharset, ContentType.CONTENT_TYPE_TEXT_PLAIN);
  		// When
  		part.getContent();
  	}
test_case.class_method_signature: StringPartTest.shouldThrowIOExceptionWhenInvalidCharset()
test_case.full_signature: @Test(expected = IOException.class) public void shouldThrowIOExceptionWhenInvalidCharset()
test_case.identifier: shouldThrowIOExceptionWhenInvalidCharset
test_case.invocations: getContent
test_case.modifiers: @Test(expected = IOException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldThrowIOExceptionWhenInvalidCharset()
focal_class.declarator: DEFAULT_CHARSET = "utf-8"
focal_class.modifier: private static final
focal_class.original_string: private static final String DEFAULT_CHARSET = "utf-8";
focal_class.type: String
focal_class.var_name: DEFAULT_CHARSET
focal_class.declarator: PLAIN_TEXT = ContentType.CONTENT_TYPE_TEXT_PLAIN
focal_class.modifier: private static final
focal_class.original_string: private static final ContentType PLAIN_TEXT = ContentType.CONTENT_TYPE_TEXT_PLAIN;
focal_class.type: ContentType
focal_class.var_name: PLAIN_TEXT
focal_class.declarator: content
focal_class.modifier: private final
focal_class.original_string: private final String content;
focal_class.type: String
focal_class.var_name: content
focal_class.declarator: charset
focal_class.modifier: private final
focal_class.original_string: private final String charset;
focal_class.type: String
focal_class.var_name: charset
focal_class.declarator: contentType
focal_class.modifier: private
focal_class.original_string: private ContentType contentType;
focal_class.type: ContentType
focal_class.var_name: contentType
focal_class.file: volleyer/src/main/java/com/navercorp/volleyextensions/volleyer/multipart/StringPart.java
focal_class.identifier: StringPart
focal_class.class_method_signature: StringPart.StringPart(String name, String content)
focal_class.full_signature: public  StringPart(String name, String content)
focal_class.identifier: StringPart
focal_class.modifiers: public
focal_class.parameters: (String name, String content)
focal_class.signature:  StringPart(String name, String content)
focal_class.class_method_signature: StringPart.StringPart(String name, String content, String charset)
focal_class.full_signature: public  StringPart(String name, String content, String charset)
focal_class.identifier: StringPart
focal_class.modifiers: public
focal_class.parameters: (String name, String content, String charset)
focal_class.signature:  StringPart(String name, String content, String charset)
focal_class.class_method_signature: StringPart.StringPart(String name, String content, String charset, ContentType contentType)
focal_class.full_signature: public  StringPart(String name, String content, String charset, ContentType contentType)
focal_class.identifier: StringPart
focal_class.modifiers: public
focal_class.parameters: (String name, String content, String charset, ContentType contentType)
focal_class.signature:  StringPart(String name, String content, String charset, ContentType contentType)
focal_class.class_method_signature: StringPart.getContentType()
focal_class.full_signature: @Override public ContentType getContentType()
focal_class.identifier: getContentType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ContentType
focal_class.signature: ContentType getContentType()
focal_class.class_method_signature: StringPart.getExtraHeader()
focal_class.full_signature: @Override protected byte[] getExtraHeader()
focal_class.identifier: getExtraHeader
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] getExtraHeader()
focal_class.class_method_signature: StringPart.getContent()
focal_class.full_signature: @Override public InputStream getContent()
focal_class.identifier: getContent
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: InputStream
focal_class.signature: InputStream getContent()
focal_class.class_method_signature: StringPart.getBytesFromContent()
focal_class.full_signature: private byte[] getBytesFromContent()
focal_class.identifier: getBytesFromContent
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] getBytesFromContent()
focal_class.superclass: extends AbstractPart
focal_method.body: @Override
  	public InputStream getContent() throws IOException {
  		byte[] bytes = getBytesFromContent();
  		if (bytes == null) {
  			return null;
  		}
  
  		InputStream is = new ByteArrayInputStream(bytes);
  		return is;
  	}
focal_method.class_method_signature: StringPart.getContent()
focal_method.full_signature: @Override public InputStream getContent()
focal_method.identifier: getContent
focal_method.invocations: getBytesFromContent
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: InputStream
focal_method.signature: InputStream getContent()