/** * Writes IGFS path to given data output. Can write {@code null} values. * * @param out Data output. * @param path Path to write. * @throws IOException If write failed. */ private void writePath(ObjectOutput out, @Nullable IgfsPath path) throws IOException { out.writeBoolean(path != null); if (path != null) path.writeExternal(out); }
/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(filesCnt); out.writeInt(dirCnt); out.writeLong(totalLen); path.writeExternal(out); }
/** * Writes object to data output. * * @param out Data output. */ @Override public void writeExternal(ObjectOutput out) throws IOException { path.writeExternal(out); out.writeInt(blockSize); out.writeLong(grpBlockSize); out.writeLong(len); IgfsUtils.writeStringMap(out, props); out.writeLong(accessTime); out.writeLong(modificationTime); out.writeByte(flags); }
/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { U.writeEnum(out, dfltMode); if (modes != null) { out.writeBoolean(true); out.writeInt(modes.size()); for (T2<IgfsPath, IgfsMode> pathMode : modes) { assert pathMode.getKey() != null; pathMode.getKey().writeExternal(out); U.writeEnum(out, pathMode.getValue()); } } else out.writeBoolean(false); if (!F.isEmpty(dualParentsWithPrimaryChildren)) { out.writeBoolean(true); out.writeInt(dualParentsWithPrimaryChildren.size()); for (IgfsPath p : dualParentsWithPrimaryChildren) p.writeExternal(out); } else out.writeBoolean(false); }
/** * Writes IGFS path to given data output. Can write {@code null} values. * * @param out Data output. * @param path Path to write. * @throws IOException If write failed. */ private void writePath(ObjectOutput out, @Nullable IgfsPath path) throws IOException { out.writeBoolean(path != null); if (path != null) path.writeExternal(out); }
/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(filesCnt); out.writeInt(dirCnt); out.writeLong(totalLen); path.writeExternal(out); }
/** * Writes object to data output. * * @param out Data output. */ @Override public void writeExternal(ObjectOutput out) throws IOException { path.writeExternal(out); out.writeInt(blockSize); out.writeLong(grpBlockSize); out.writeLong(len); IgfsUtils.writeStringMap(out, props); out.writeLong(accessTime); out.writeLong(modificationTime); out.writeByte(flags); }
/** {@inheritDoc} */ @Override public void writeExternal(ObjectOutput out) throws IOException { U.writeEnum(out, dfltMode); if (modes != null) { out.writeBoolean(true); out.writeInt(modes.size()); for (T2<IgfsPath, IgfsMode> pathMode : modes) { assert pathMode.getKey() != null; pathMode.getKey().writeExternal(out); U.writeEnum(out, pathMode.getValue()); } } else out.writeBoolean(false); if (!F.isEmpty(dualParentsWithPrimaryChildren)) { out.writeBoolean(true); out.writeInt(dualParentsWithPrimaryChildren.size()); for (IgfsPath p : dualParentsWithPrimaryChildren) p.writeExternal(out); } else out.writeBoolean(false); }