public java.io.Serializable read_value(java.io.Serializable value) { // Put into valueCache using valueIndirection if (valueCache == null) valueCache = new CacheTable(orb, false); valueCache.put(value, valueIndirection); if (value instanceof StreamableValue) ((StreamableValue) value)._read(parent); else if (value instanceof CustomValue) ((CustomValue) value).unmarshal(parent); return value; }
public java.io.Serializable read_value(java.io.Serializable value) { // Put into valueCache using valueIndirection if (valueCache == null) valueCache = new CacheTable(orb, false); valueCache.put(value, valueIndirection); if (value instanceof StreamableValue) ((StreamableValue) value)._read(parent); else if (value instanceof CustomValue) ((CustomValue) value).unmarshal(parent); return value; }
private void write_codebase(String str, int pos) { if (codebaseCache != null && codebaseCache.containsKey(str)) { writeIndirection(INDIRECTION_TAG, codebaseCache.getVal(str)); } else { write_string(str); if (codebaseCache == null) codebaseCache = new CacheTable(orb, true); codebaseCache.put(str, pos); } }
private void write_codebase(String str, int pos) { if (codebaseCache != null && codebaseCache.containsKey(str)) { writeIndirection(INDIRECTION_TAG, codebaseCache.getVal(str)); } else { write_string(str); if (codebaseCache == null) codebaseCache = new CacheTable(orb, true); codebaseCache.put(str, pos); } }
private final void write_repositoryId(String id) { // Use an indirection if available if (repositoryIdCache != null && repositoryIdCache.containsKey(id)) { writeIndirection(INDIRECTION_TAG, repositoryIdCache.getVal(id)); return; } // Write it as a string. Note that we have already done the special case conversion of non-Latin-1 characters to // escaped Latin-1 sequences in RepositoryId. // It's not a good idea to cache them now that we can have multiple code sets. int indirection = writeString(id); // Add indirection for id to indirection table if (repositoryIdCache == null) repositoryIdCache = new CacheTable(orb, true); repositoryIdCache.put(id, indirection); }
private final void write_repositoryId(String id) { // Use an indirection if available if (repositoryIdCache != null && repositoryIdCache.containsKey(id)) { writeIndirection(INDIRECTION_TAG, repositoryIdCache.getVal(id)); return; } // Write it as a string. Note that we have already done the special case conversion of non-Latin-1 characters to // escaped Latin-1 sequences in RepositoryId. // It's not a good idea to cache them now that we can have multiple code sets. int indirection = writeString(id); // Add indirection for id to indirection table if (repositoryIdCache == null) repositoryIdCache = new CacheTable(orb, true); repositoryIdCache.put(id, indirection); }
private final String read_repositoryId() { String result = readStringOrIndirection(true); if (result == null) { // Indirection int indirection = read_long() + get_offset() - 4; if (repositoryIdCache != null && repositoryIdCache.containsOrderedVal(indirection)) return (String) repositoryIdCache.getKey(indirection); else throw wrapper.badRepIdIndirection(CompletionStatus.COMPLETED_MAYBE, new Integer(bbwi.position())); } else { if (repositoryIdCache == null) repositoryIdCache = new CacheTable(orb, false); repositoryIdCache.put(result, stringIndirection); } return result; }
private final String read_codebase_URL() { String result = readStringOrIndirection(true); if (result == null) { // Indirection int indirection = read_long() + get_offset() - 4; if (codebaseCache != null && codebaseCache.containsVal(indirection)) return (String) codebaseCache.getKey(indirection); else throw wrapper.badCodebaseIndirection(CompletionStatus.COMPLETED_MAYBE, new Integer(bbwi.position())); } else { if (codebaseCache == null) codebaseCache = new CacheTable(orb, false); codebaseCache.put(result, stringIndirection); } return result; }
private final String read_repositoryId() { String result = readStringOrIndirection(true); if (result == null) { // Indirection int indirection = read_long() + get_offset() - 4; if (repositoryIdCache != null && repositoryIdCache.containsOrderedVal(indirection)) return (String) repositoryIdCache.getKey(indirection); else throw wrapper.badRepIdIndirection(CompletionStatus.COMPLETED_MAYBE, new Integer(bbwi.position())); } else { if (repositoryIdCache == null) repositoryIdCache = new CacheTable(orb, false); repositoryIdCache.put(result, stringIndirection); } return result; }
private final String read_codebase_URL() { String result = readStringOrIndirection(true); if (result == null) { // Indirection int indirection = read_long() + get_offset() - 4; if (codebaseCache != null && codebaseCache.containsVal(indirection)) return (String) codebaseCache.getKey(indirection); else throw wrapper.badCodebaseIndirection(CompletionStatus.COMPLETED_MAYBE, new Integer(bbwi.position())); } else { if (codebaseCache == null) codebaseCache = new CacheTable(orb, false); codebaseCache.put(result, stringIndirection); } return result; }
valueCache.put(val, indirection);
valueCache.put(val, indirection);
if (repositoryIdCache == null) repositoryIdCache = new CacheTable(orb, false); repositoryIdCache.put(repID, indirection);
if (repositoryIdCache == null) repositoryIdCache = new CacheTable(orb, false); repositoryIdCache.put(repID, indirection);
valueCache.put(value, indirection);
valueCache.put(value, indirection);
valueCache.put(value, indirection);
valueCache.put(value, indirection);