안녕하세요 저는 dataOutputStream
을 requestStream
android로 맞춤 설정으로 사용하고 있습니다. 확장 클래스를 생성 한 직후 경고가 나타났습니다. android에서 dataOuputStream 확장
public class RequestStream extends DataOutputStream{
/**
* Constructs a new {@code DataOutputStream} on the {@code OutputStream}
* {@code out}. Note that data written by this stream is not in a human
* readable form but can be reconstructed by using a {@link DataInputStream}
* on the resulting output.
*
* @param out the target stream for writing.
*/
그리고 내 모든 설정 requestStream
[[email protected]
같았다. (위의 경고가 말한다처럼이 사람이 읽을 수 없었다)
그리고 나는
java.lang.IllegalStateException: Cannot set request property after connection is made
내가 어디에 코드 {@link DataInputStream}
를 넣어하는 방법 알고 싶어 잘못된 DataOutputStream 정렬에서 결과를 추측 예외를 얻었다.
정말 고마워요 !! 'RequestStream'는 잘 작동하지만 Logcat에서'ByteArray'를 인쇄하려고 시도했습니다. 나는 연결 부분을 고정시켰다. 그것은 모두 잘 작동합니다. 고맙습니다! 내가 가진 오류를 알아내는 데 더 신중할 수 있습니다. –