Examples of AsciiString


Examples of com.sun.star.uno.AsciiString

        nDouble = 111.111;
        cChar = 'a';
        bBoolean = true;
        aString = "hallo";
        aAscii = new Ascii( 'a' );
        aAsciiString = new AsciiString( "asciistring" );
        eEnum = TCKind.tk_ulonglong;
    }
View Full Code Here

Examples of com.sun.star.uno.AsciiString

        aE.nDouble = 111.111;
        aE.cChar = 'a';
        aE.bBoolean = true;
        aE.aString = "hallo";
        aE.aAscii = new Ascii( 'a' );
        aE.aAsciiString = new AsciiString( "asciistring" );
       
        aM = new Marshal( false, null );
        aM.write_exception( aE );
        aUM = new Unmarshal( aM.getByteArray(), aM.getSize(), false, null );
        ExceptionTest aE2 = (ExceptionTest)aUM.read_exception( ExceptionTest.class );
View Full Code Here

Examples of fiftyone.mobile.detection.entities.AsciiString

     * @param reader Binary reader positioned at the start of the AsciiString
     * @return A new instance of an AsciiString
     */
    public AsciiString create(Dataset dataSet, int offset,
            BinaryReader reader) {
        return new AsciiString(dataSet, offset, reader);
    }
View Full Code Here

Examples of io.netty.handler.codec.AsciiString

        EmbeddedChannel decompressor = stream.decompressor();
        if (decompressor == null) {
            if (!endOfStream) {
                // Determine the content encoding.
                AsciiString contentEncoding = headers.get(HttpHeaderNames.CONTENT_ENCODING);
                if (contentEncoding == null) {
                    contentEncoding = HttpHeaderValues.IDENTITY;
                }
                decompressor = newContentDecompressor(contentEncoding);
                if (decompressor != null) {
                    stream.decompressor(decompressor);
                    // Decode the content and remove or replace the existing headers
                    // so that the message looks like a decoded message.
                    AsciiString targetContentEncoding = getTargetContentEncoding(contentEncoding);
                    if (HttpHeaderValues.IDENTITY.equalsIgnoreCase(targetContentEncoding)) {
                        headers.remove(HttpHeaderNames.CONTENT_ENCODING);
                    } else {
                        headers.set(HttpHeaderNames.CONTENT_ENCODING, targetContentEncoding);
                    }
View Full Code Here

Examples of io.netty.handler.codec.AsciiString

    /**
     * Converts a {@link String} into an {@link AsciiString}.
     */
    public static AsciiString as(String value) {
        return new AsciiString(value);
    }
View Full Code Here

Examples of io.netty.handler.codec.AsciiString

    /**
     * Converts a byte array into an {@link AsciiString}.
     */
    public static AsciiString as(byte[] value) {
        return new AsciiString(value);
    }
View Full Code Here

Examples of org.jgroups.util.AsciiString

     */
    private void setKeys(SecretKey key, byte[] version) throws Exception {

        // put the previous key into the map
        // if the keys are already there then they will overwrite
        keyMap.put(new AsciiString(getSymVersion()), getSymDecodingCipher());

        setSecretKey(key);
        initSymCiphers(key.getAlgorithm(), key);
        setSymVersion(version);

View Full Code Here

Examples of org.jgroups.util.AsciiString

     */
    private Message decryptMessage(Cipher cipher, Message msg) throws Exception {
        EncryptHeader hdr=(EncryptHeader)msg.getHeader(this.id);
        if(!Arrays.equals(hdr.getVersion(),getSymVersion())) {
            log.warn("attempting to use stored cipher as message does not use current encryption version ");
            cipher=keyMap.get(new AsciiString(hdr.getVersion()));
            if(cipher == null) {
                log.warn("unable to find a matching cipher in previous key map");
                return null;
            }
            log.trace("decrypting using previous cipher version");
View Full Code Here

Examples of org.jgroups.util.AsciiString

        switch(evt.getType()) {
            case Event.CONNECT:
            case Event.CONNECT_USE_FLUSH:
            case Event.CONNECT_WITH_STATE_TRANSFER:
            case Event.CONNECT_WITH_STATE_TRANSFER_USE_FLUSH:
                cluster_name=new AsciiString((String)evt.getArg());
                break;
            case Event.SET_LOCAL_ADDRESS:
                local_addr=(Address)evt.getArg();
                break;
        }
View Full Code Here

Examples of org.jgroups.util.AsciiString

    @ManagedOperation(description="Dumps the contents of the routing table")
    public static String dumpRoutingTable() {
        StringBuilder sb=new StringBuilder();
        for(Map.Entry<AsciiString,Map<Address,SHARED_LOOPBACK>> entry: routing_table.entrySet()) {
            AsciiString cluster_name=entry.getKey();
            Set<Address> mbrs=entry.getValue().keySet();
            sb.append(cluster_name).append(": ").append(mbrs).append("\n");
        }
        return sb.toString();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.