Examples of asString()


Examples of org.apache.xmlbeans.impl.common.Chars.asString()

        // String
        public boolean textIsWhitespace ( )
        {
            Chars chars = new Chars();
            getText( chars );
            String s = chars.asString();

            for ( int i = 0 ; i < s.length() ; i++ )
            {
                switch ( s.charAt( i ) )
                {
View Full Code Here

Examples of org.bson.io.BasicOutputBuffer.asString()

        BasicOutputBuffer buf = new BasicOutputBuffer();
        buf.write( "eliot".getBytes() );
        assertEquals( 5 , buf.getPosition() );
        assertEquals( 5 , buf.size() );
       
        assertEquals( "eliot" , buf.asString() );

        buf.setPosition( 2 );
        buf.write( "z".getBytes() );
        assertEquals( "elzot" , buf.asString() );
       
View Full Code Here

Examples of org.bson.io.PoolOutputBuffer.asString()

        PoolOutputBuffer buf = new PoolOutputBuffer();
        buf.write( "eliot".getBytes() );
        assertEquals( 5 , buf.getPosition() );
        assertEquals( 5 , buf.size() );
       
        assertEquals( "eliot" , buf.asString() );

        buf.setPosition( 2 );
        buf.write( "z".getBytes() );
        assertEquals( "elzot" , buf.asString() );
       
View Full Code Here

Examples of org.bukkit.metadata.MetadataValue.asString()

        if (data.isEmpty())
            return;
       
        // only care about first
        MetadataValue value = data.get(0);
        String playerName = value.asString();
        Player player = Bukkit.getServer().getPlayerExact(playerName);
        if (player == null || !player.isOnline())
            return;
       
        if (!Jobs.getPermissionHandler().hasWorldPermission(player, player.getLocation().getWorld().getName()))
View Full Code Here

Examples of org.codehaus.jam.JAnnotationValue.asString()

 
  protected String stringValue(JAnnotation annotation, String name, String defaultValue) {
        if (annotation != null) {
            JAnnotationValue value = annotation.getValue(name);
            if (value != null) {
                return value.asString();
            }
        }
        return defaultValue;
  }
View Full Code Here

Examples of org.eclipse.jetty.http.HttpHeader.asString()

                {
                    // Non indexed field
                    indexed=false;
                    boolean never_index=__NEVER_INDEX.contains(header);
                    boolean huffman=!__DO_NOT_HUFFMAN.contains(header);
                    encodeName(buffer,never_index?(byte)0x10:(byte)0x00,4,header.asString(),name);
                    encodeValue(buffer,huffman,field.getValue());

                    if (_debug)
                        encoding="Lit"+
                                ((name==null)?"HuffN":("IdxN"+(name.isStatic()?"S":"")+(1+NBitInteger.octectsNeeded(4,_context.index(name)))))+
View Full Code Here

Examples of org.eclipse.jetty.http.HttpMethod.asString()

        if (uri.getScheme()==null && schemeHeader!=null)
            uri.setScheme(schemeHeader.getValue());
        if (uri.getHost()==null && hostPort!=null)
            uri.setAuthority(hostPort.getHost(),hostPort.getPort());
       
        MetaData.Request request = new MetaData.Request(httpMethod==null?methodHeader.getValue():httpMethod.asString(), uri, httpVersion, fields);
        onRequest(request);
        return true;
    }
}
View Full Code Here

Examples of org.eclipse.jetty.http.HttpVersion.asString()

    private void sendReply(MetaData.Response info, Callback callback, boolean close)
    {
        Fields headers = new Fields();

        HttpVersion httpVersion = HttpVersion.HTTP_1_1;
        headers.put(HTTPSPDYHeader.VERSION.name(version), httpVersion.asString());

        int status = info.getStatus();
        StringBuilder httpStatus = new StringBuilder().append(status);
        String reason = info.getReason();
        if (reason == null)
View Full Code Here

Examples of org.eclipse.rap.json.JsonValue.asString()

  }

  private void processClientDrawings( GC gc ) {
    JsonValue drawings = readEventPropertyValue( WidgetUtil.getId( this ), DRAWING_EVENT, DRAWINGS_PROPERTY );
    if( drawings != null ) {
      cacheDrawings( drawings.asString() );
      cache.clearRemoved();
      fireDrawEvent();
    }
    dispatchDrawings( gc );
  }
View Full Code Here

Examples of org.ethereum.util.Value.asString()

        return this.cache.put(node);
    }

    private boolean isEmptyNode(Object node) {
        Value n = new Value(node);
        return (node == null || (n.isString() && (n.asString() == "" || n.get(0).isNull())) || n.length() == 0);
    }

    private Object[] copyNode(Value currentNode) {
        Object[] itemList = emptyStringSlice(LIST_SIZE);
        for (int i = 0; i < LIST_SIZE; i++) {
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.