MCPcopy Create free account

hub / github.com/anismiles/websocket-android-phonegap / functions

Functions49 in github.com/anismiles/websocket-android-phonegap

↓ 19 callersMethodclose
Flushes and closes (I think, in the superclass) the stream. @since 1.3
src/com/strumsoft/websocket/phonegap/Base64.java:2020
↓ 10 callersMethodwrite
Writes the byte to the output stream after converting to/from Base64 notation. When encoding, bytes are buffered three at a time before the output str
src/com/strumsoft/websocket/phonegap/Base64.java:1924
↓ 7 callersMethodencode3to4
Encodes up to the first three bytes of array <var>threeBytes</var> and returns a four-byte array in Base64 notation. The actual number of significant
src/com/strumsoft/websocket/phonegap/Base64.java:466
↓ 5 callersMethodbuildJavaScriptData
Builds text for javascript engine to invoke proper event method with proper data. @param event websocket event (onOpen, onMessage etc.) @p
src/com/strumsoft/websocket/phonegap/WebSocket.java:437
↓ 5 callersMethodonError
(Throwable t)
src/com/strumsoft/websocket/phonegap/WebSocket.java:402
↓ 5 callersMethodread
Reads enough of the input stream to convert to/from Base64 and returns the next byte. @return next byte @since 1.3
src/com/strumsoft/websocket/phonegap/Base64.java:1705
↓ 4 callersMethodgetDecodabet
Returns one of the _SOMETHING_DECODABET byte arrays depending on the options specified. It's possible, though silly, to specify ORDERED and URL_SAFE i
src/com/strumsoft/websocket/phonegap/Base64.java:430
↓ 3 callersMethod_write
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:557
↓ 3 callersMethodclose
Closes connection with server
src/com/strumsoft/websocket/phonegap/WebSocket.java:315
↓ 3 callersMethoddecode4to3
Decodes four bytes from array <var>source</var> and writes the resulting bytes (up to three of them) to <var>destination</var>. The source and destina
src/com/strumsoft/websocket/phonegap/Base64.java:1030
↓ 2 callersMethodflushBase64
Method added by PHIL. [Thanks, PHIL. -Rob] This pads the buffer without closing the stream. @throws java.io.IOException if there's an error.
src/com/strumsoft/websocket/phonegap/Base64.java:2001
↓ 2 callersMethodgetInstance
(String url)
src/com/strumsoft/websocket/phonegap/WebSocketFactory.java:68
↓ 1 callersMethod_connect
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:490
↓ 1 callersMethod_read
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:578
↓ 1 callersMethod_readFrame
(int bytesRead)
src/com/strumsoft/websocket/phonegap/WebSocket.java:607
↓ 1 callersMethod_send
(String text)
src/com/strumsoft/websocket/phonegap/WebSocket.java:456
↓ 1 callersMethod_writeHandshake
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:518
↓ 1 callersMethodconnect
Starts a new Thread and connects to server @throws IOException
src/com/strumsoft/websocket/phonegap/WebSocket.java:270
↓ 1 callersMethoddecode
Low-level access to decoding ASCII characters in the form of a byte array. <strong>Ignores GUNZIP option, if it's set.</strong> This is not generally
src/com/strumsoft/websocket/phonegap/Base64.java:1118
↓ 1 callersMethoddecodeFromFile
Convenience method for reading a base64-encoded file and decoding it. <p>As of v 2.3, if there is a error, the method will throw an java.io.IOExcepti
src/com/strumsoft/websocket/phonegap/Base64.java:1475
↓ 1 callersMethodencodeBytes
Encodes a byte array into Base64 notation. Does not GZip-compress data. @param source The data to convert @return The data in Base64-encoded form @th
src/com/strumsoft/websocket/phonegap/Base64.java:714
↓ 1 callersMethodencodeBytesToBytes
Similar to {@link #encodeBytes(byte[])} but returns a byte array instead of instantiating a String. This is more efficient if you're working with I/O
src/com/strumsoft/websocket/phonegap/Base64.java:857
↓ 1 callersMethodencodeFromFile
Convenience method for reading a binary file and base64-encoding it. <p>As of v 2.3, if there is a error, the method will throw an java.io.IOExceptio
src/com/strumsoft/websocket/phonegap/Base64.java:1536
↓ 1 callersMethodgetAlphabet
Returns one of the _SOMETHING_ALPHABET byte arrays depending on the options specified. It's possible, though silly, to specify ORDERED <b>and</b> URLS
src/com/strumsoft/websocket/phonegap/Base64.java:412
↓ 1 callersMethodgetId
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:416
↓ 1 callersMethodgetRandonUniqueId
Generates random unique ids for WebSocket instances @return String
src/com/strumsoft/websocket/phonegap/WebSocketFactory.java:95
↓ 1 callersMethodgetReadyState
@return the readyState
src/com/strumsoft/websocket/phonegap/WebSocket.java:423
↓ 1 callersMethodonClose
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:391
↓ 1 callersMethodonMessage
Called when an entire text frame has been received. @param msg Message from websocket server
src/com/strumsoft/websocket/phonegap/WebSocket.java:362
↓ 1 callersMethodonOpen
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:379
↓ 1 callersMethodsend
Sends <var>text</var> to server @param text String to send to server
src/com/strumsoft/websocket/phonegap/WebSocket.java:339
MethodBase64
Defeats instantiation.
src/com/strumsoft/websocket/phonegap/Base64.java:443
MethodInputStream
Constructs a {@link Base64.InputStream} in DECODE mode. @param in the <tt>java.io.InputStream</tt> from which to read data. @since 1.3
src/com/strumsoft/websocket/phonegap/Base64.java:1660
MethodOutputStream
Constructs a {@link Base64.OutputStream} in ENCODE mode. @param out the <tt>java.io.OutputStream</tt> to which data will be written. @since 1.3
src/com/strumsoft/websocket/phonegap/Base64.java:1873
MethodWebSocket
Constructor. Note: this is protected because it's supposed to be instantiated from {@link WebSocketFactory} only. @param appView {@link a
src/com/strumsoft/websocket/phonegap/WebSocket.java:238
MethodWebSocketFactory
Instantiates a new web socket factory. @param appView the app view
src/com/strumsoft/websocket/phonegap/WebSocketFactory.java:59
MethoddecodeFileToFile
Reads <tt>infile</tt> and decodes it to <tt>outfile</tt>. @param infile Input file @param outfile Output file @throws java.io.IOException if there is
src/com/strumsoft/websocket/phonegap/Base64.java:1609
MethoddecodeToFile
Convenience method for decoding data to a file. <p>As of v 2.3, if there is a error, the method will throw an java.io.IOException. <b>This is new to
src/com/strumsoft/websocket/phonegap/Base64.java:1440
MethoddecodeToObject
Attempts to decode Base64 data and deserialize a Java Object within. Returns <tt>null</tt> if there was an error. @param encodedObject The Base64 dat
src/com/strumsoft/websocket/phonegap/Base64.java:1314
Methodencode
Performs Base64 encoding on the <code>raw</code> ByteBuffer, writing it to the <code>encoded</code> ByteBuffer. This is an experimental feature. Curre
src/com/strumsoft/websocket/phonegap/Base64.java:557
MethodencodeFileToFile
Reads <tt>infile</tt> and encodes it to <tt>outfile</tt>. @param infile Input file @param outfile Output file @throws java.io.IOException if there is
src/com/strumsoft/websocket/phonegap/Base64.java:1581
MethodencodeObject
Serializes an object and returns the Base64-encoded version of that serialized object. <p>As of v 2.3, if the object cannot be serialized or there is
src/com/strumsoft/websocket/phonegap/Base64.java:616
MethodencodeToFile
Convenience method for encoding data to a file. <p>As of v 2.3, if there is a error, the method will throw an java.io.IOException. <b>This is new to
src/com/strumsoft/websocket/phonegap/Base64.java:1404
MethodgetSocketList
()
src/com/strumsoft/websocket/phonegap/WebSocketFactory.java:64
MethodresolveClass
(java.io.ObjectStreamClass streamClass)
src/com/strumsoft/websocket/phonegap/Base64.java:1359
MethodresumeEncoding
Resumes encoding of the stream. May be helpful if you need to embed a piece of base64-encoded data in a stream. @since 1.5.1
src/com/strumsoft/websocket/phonegap/Base64.java:2056
Methodrun
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:296
MethodsetKeyboardStatus
(boolean status)
src/com/strumsoft/websocket/phonegap/WebSocket.java:308
MethodsuspendEncoding
Suspends encoding of the stream. May be helpful if you need to embed a piece of base64-encoded data in a stream. @throws java.io.IOException if ther
src/com/strumsoft/websocket/phonegap/Base64.java:2043