Package jp.cssj.driver.ctip.v1
Class V1RequestConsumer
java.lang.Object
jp.cssj.driver.ctip.v1.V1RequestConsumer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidend()Sends an end packet.voidSignals the start of the body.voidSends a property.voidSignals the start of a resource.protected voidsetCTIPSession(V1Session session) voidwrite(byte[] b, int off, int len) Sends a data packet.
-
Field Details
-
PROPERTY
public static final byte PROPERTYA property packet. Use getName and getValue to obtain the name and value.- See Also:
-
RESOURCE
public static final byte RESOURCEA resource start packet. Use getURI, getMimeType, and getEncoding to obtain the URI, MIME type, and encoding.- See Also:
-
MAIN
public static final byte MAINA content start packet. Use getURI, getMimeType, and getEncoding to obtain the URI, MIME type, and encoding.- See Also:
-
DATA
public static final byte DATAA data packet. Use read to obtain the data.- See Also:
-
END
public static final byte ENDAn end packet.- See Also:
-
-
Method Details
-
property
Sends a property.- Parameters:
name- The property name.value- The value.- Throws:
IOException
-
resource
Signals the start of a resource.- Parameters:
uri- The virtual URI.mimeType- The MIME type.encoding- The character encoding.- Throws:
IOException
-
main
Signals the start of the body.- Parameters:
uri- The virtual URI.mimeType- The MIME type.encoding- The character encoding.- Throws:
IOException
-
setCTIPSession
-
write
Sends a data packet.- Parameters:
b- The byte buffer.off- The starting position of the data.len- The data length.- Throws:
IOException
-
end
Sends an end packet.- Throws:
IOException
-