URLStream.hx 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package flash.net;
  2. extern class URLStream extends flash.events.EventDispatcher implements flash.utils.IDataInput {
  3. @:flash.property var bytesAvailable(get,never) : UInt;
  4. @:flash.property var connected(get,never) : Bool;
  5. @:flash.property @:require(flash11_4) var diskCacheEnabled(get,never) : Bool;
  6. @:flash.property var endian(get,set) : flash.utils.Endian;
  7. @:flash.property @:require(flash11_4) var length(get,never) : Float;
  8. @:flash.property var objectEncoding(get,set) : UInt;
  9. @:flash.property @:require(flash11_4) var position(get,set) : Float;
  10. function new() : Void;
  11. function close() : Void;
  12. private function get_bytesAvailable() : UInt;
  13. private function get_connected() : Bool;
  14. private function get_diskCacheEnabled() : Bool;
  15. private function get_endian() : flash.utils.Endian;
  16. private function get_length() : Float;
  17. private function get_objectEncoding() : UInt;
  18. private function get_position() : Float;
  19. function load(request : URLRequest) : Void;
  20. function readBoolean() : Bool;
  21. function readByte() : Int;
  22. function readBytes(bytes : flash.utils.ByteArray, offset : UInt = 0, length : UInt = 0) : Void;
  23. function readDouble() : Float;
  24. function readFloat() : Float;
  25. function readInt() : Int;
  26. function readMultiByte(length : UInt, charSet : String) : String;
  27. function readObject() : Dynamic;
  28. function readShort() : Int;
  29. function readUTF() : String;
  30. function readUTFBytes(length : UInt) : String;
  31. function readUnsignedByte() : UInt;
  32. function readUnsignedInt() : UInt;
  33. function readUnsignedShort() : UInt;
  34. private function set_endian(value : flash.utils.Endian) : flash.utils.Endian;
  35. private function set_objectEncoding(value : UInt) : UInt;
  36. private function set_position(value : Float) : Float;
  37. @:require(flash11_4) function stop() : Void;
  38. }