import java.io.UnsupportedEncodingException;
+import javax.annotation.Nonnull;
+
import net.pterodactylus.rhynodge.State;
import net.pterodactylus.rhynodge.queries.HttpQuery;
return copyOf(rawResult, rawResult.length);
}
+ @Override
+ public boolean isEmpty() {
+ return rawResult.length == 0;
+ }
+
/**
* Returns the decoded content of the reply. This method uses the charset
* information from the {@link #contentType()}, if present, or UTF-8 if no
}
}
+ @Nonnull
+ @Override
+ protected String plainText() {
+ return content();
+ }
+
//
// STATIC METHODS
//