@Override public KiWiUriResource read(ObjectDataInput input) throws IOException { return KiWiIO.readURI(input); }
@Override public KiWiUriResource read(ObjectDataInput input) throws IOException { return KiWiIO.readURI(input); }
@Override public KiWiUriResource readObject(ObjectInput input) throws IOException, ClassNotFoundException { return KiWiIO.readURI(input); }
/** * Read a KiWiDoubleLiteral serialized with writeDoubleLiteral from a DataInput source * * @param input the source * @return the de-serialized KiWiDoubleLiteral * @throws IOException */ public static KiWiDoubleLiteral readDoubleLiteral(DataInput input) throws IOException { long id = input.readLong(); if (id == -1) { return null; } double content = input.readDouble(); KiWiUriResource dtype = readURI(input); Date created = new Date(input.readLong()); KiWiDoubleLiteral r = new KiWiDoubleLiteral(content, dtype, created); r.setId(id); return r; }
/** * Read a KiWiDateLiteral serialized with writeDateLiteral from a DataInput source * * @param input the source * @return the de-serialized KiWiDateLiteral * @throws IOException */ public static KiWiDateLiteral readDateLiteral(DataInput input) throws IOException { long id = input.readLong(); if(id == -1) { return null; } else { DateTime content = new DateTime(input.readLong(), DateTimeZone.forOffsetMillis(input.readInt())); KiWiUriResource dtype = readURI(input); Date created = new Date(input.readLong()); KiWiDateLiteral r = new KiWiDateLiteral(content, dtype, created); r.setId(id); return r; } }
/** * Read a KiWiIntLiteral serialized with writeIntLiteral from a DataInput source * * @param input the source * @return the de-serialized KiWiIntLiteral * @throws IOException */ public static KiWiIntLiteral readIntLiteral(DataInput input) throws IOException { long id = input.readLong(); if (id == -1) { return null; } long content = input.readLong(); KiWiUriResource dtype = readURI(input); Date created = new Date(input.readLong()); KiWiIntLiteral r = new KiWiIntLiteral(content, dtype, created); r.setId(id); return r; }
/** * Read a KiWiBooleanLiteral serialized with writeBooleanLiteral from a DataInput source * * @param input the source * @return the de-serialized KiWiBooleanLiteral * @throws IOException */ public static KiWiBooleanLiteral readBooleanLiteral(DataInput input) throws IOException { long id = input.readLong(); if(id == -1) { return null; } else { boolean content = input.readBoolean(); KiWiUriResource dtype = readURI(input); Date created = new Date(input.readLong()); KiWiBooleanLiteral r = new KiWiBooleanLiteral(content, dtype, created); r.setId(id); return r; } }
/** * Read a KiWiDoubleLiteral serialized with writeDoubleLiteral from a DataInput source * * @param input the source * @return the de-serialized KiWiDoubleLiteral * @throws IOException */ public static KiWiDoubleLiteral readDoubleLiteral(DataInput input) throws IOException { long id = input.readLong(); if (id == -1) { return null; } double content = input.readDouble(); KiWiUriResource dtype = readURI(input); Date created = new Date(input.readLong()); KiWiDoubleLiteral r = new KiWiDoubleLiteral(content, dtype, created); r.setId(id); return r; }
/** * Read a KiWiIntLiteral serialized with writeIntLiteral from a DataInput source * * @param input the source * @return the de-serialized KiWiIntLiteral * @throws IOException */ public static KiWiIntLiteral readIntLiteral(DataInput input) throws IOException { long id = input.readLong(); if (id == -1) { return null; } long content = input.readLong(); KiWiUriResource dtype = readURI(input); Date created = new Date(input.readLong()); KiWiIntLiteral r = new KiWiIntLiteral(content, dtype, created); r.setId(id); return r; }
/** * Read a KiWiBooleanLiteral serialized with writeBooleanLiteral from a DataInput source * * @param input the source * @return the de-serialized KiWiBooleanLiteral * @throws IOException */ public static KiWiBooleanLiteral readBooleanLiteral(DataInput input) throws IOException { long id = input.readLong(); if(id == -1) { return null; } else { boolean content = input.readBoolean(); KiWiUriResource dtype = readURI(input); Date created = new Date(input.readLong()); KiWiBooleanLiteral r = new KiWiBooleanLiteral(content, dtype, created); r.setId(id); return r; } }
/** * Read a KiWiDateLiteral serialized with writeDateLiteral from a DataInput source * * @param input the source * @return the de-serialized KiWiDateLiteral * @throws IOException */ public static KiWiDateLiteral readDateLiteral(DataInput input) throws IOException { long id = input.readLong(); if(id == -1) { return null; } else { DateTime content = new DateTime(input.readLong(), DateTimeZone.forOffsetMillis(input.readInt())); KiWiUriResource dtype = readURI(input); Date created = new Date(input.readLong()); KiWiDateLiteral r = new KiWiDateLiteral(content, dtype, created); r.setId(id); return r; } }
KiWiUriResource dtype = readURI(input);
KiWiUriResource dtype = readURI(input);
return null; case TYPE_URI: return readURI(input); case TYPE_BNODE: return readBNode(input);
return null; case TYPE_URI: return readURI(input); case TYPE_BNODE: return readBNode(input);