Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anismiles/websocket-android-phonegap
/ functions
Functions
49 in github.com/anismiles/websocket-android-phonegap
⨍
Functions
49
◇
Types & classes
6
↓ 19 callers
Method
close
Flushes and closes (I think, in the superclass) the stream. @since 1.3
src/com/strumsoft/websocket/phonegap/Base64.java:2020
↓ 10 callers
Method
write
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 callers
Method
encode3to4
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 callers
Method
buildJavaScriptData
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 callers
Method
onError
(Throwable t)
src/com/strumsoft/websocket/phonegap/WebSocket.java:402
↓ 5 callers
Method
read
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 callers
Method
getDecodabet
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 callers
Method
_write
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:557
↓ 3 callers
Method
close
Closes connection with server
src/com/strumsoft/websocket/phonegap/WebSocket.java:315
↓ 3 callers
Method
decode4to3
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 callers
Method
flushBase64
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 callers
Method
getInstance
(String url)
src/com/strumsoft/websocket/phonegap/WebSocketFactory.java:68
↓ 1 callers
Method
_connect
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:490
↓ 1 callers
Method
_read
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:578
↓ 1 callers
Method
_readFrame
(int bytesRead)
src/com/strumsoft/websocket/phonegap/WebSocket.java:607
↓ 1 callers
Method
_send
(String text)
src/com/strumsoft/websocket/phonegap/WebSocket.java:456
↓ 1 callers
Method
_writeHandshake
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:518
↓ 1 callers
Method
connect
Starts a new Thread and connects to server @throws IOException
src/com/strumsoft/websocket/phonegap/WebSocket.java:270
↓ 1 callers
Method
decode
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 callers
Method
decodeFromFile
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 callers
Method
encodeBytes
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 callers
Method
encodeBytesToBytes
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 callers
Method
encodeFromFile
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 callers
Method
getAlphabet
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 callers
Method
getId
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:416
↓ 1 callers
Method
getRandonUniqueId
Generates random unique ids for WebSocket instances @return String
src/com/strumsoft/websocket/phonegap/WebSocketFactory.java:95
↓ 1 callers
Method
getReadyState
@return the readyState
src/com/strumsoft/websocket/phonegap/WebSocket.java:423
↓ 1 callers
Method
onClose
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:391
↓ 1 callers
Method
onMessage
Called when an entire text frame has been received. @param msg Message from websocket server
src/com/strumsoft/websocket/phonegap/WebSocket.java:362
↓ 1 callers
Method
onOpen
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:379
↓ 1 callers
Method
send
Sends <var>text</var> to server @param text String to send to server
src/com/strumsoft/websocket/phonegap/WebSocket.java:339
Method
Base64
Defeats instantiation.
src/com/strumsoft/websocket/phonegap/Base64.java:443
Method
InputStream
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
Method
OutputStream
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
Method
WebSocket
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
Method
WebSocketFactory
Instantiates a new web socket factory. @param appView the app view
src/com/strumsoft/websocket/phonegap/WebSocketFactory.java:59
Method
decodeFileToFile
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
Method
decodeToFile
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
Method
decodeToObject
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
Method
encode
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
Method
encodeFileToFile
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
Method
encodeObject
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
Method
encodeToFile
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
Method
getSocketList
()
src/com/strumsoft/websocket/phonegap/WebSocketFactory.java:64
Method
resolveClass
(java.io.ObjectStreamClass streamClass)
src/com/strumsoft/websocket/phonegap/Base64.java:1359
Method
resumeEncoding
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
Method
run
()
src/com/strumsoft/websocket/phonegap/WebSocket.java:296
Method
setKeyboardStatus
(boolean status)
src/com/strumsoft/websocket/phonegap/WebSocket.java:308
Method
suspendEncoding
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