Skip to content

Instantly share code, notes, and snippets.

@BodySplash
Created February 9, 2012 15:52
Show Gist options
  • Save BodySplash/1780774 to your computer and use it in GitHub Desktop.
Save BodySplash/1780774 to your computer and use it in GitHub Desktop.
else if (nextChar == ';') {
if (mediaTypeBuffer.length() > 0) {
// End of mediaType section
// Parameters detected
readingMediaType = false;
readingParamName = true;
paramNameBuffer = new StringBuilder();
parameters = new Form();
} else {
throw new IOException(
"Empty mediaType name detected.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment